Lines 28-33
Link Here
|
28 |
#include <openssl/rand.h> |
28 |
#include <openssl/rand.h> |
29 |
#include <openssl/evp.h> |
29 |
#include <openssl/evp.h> |
30 |
|
30 |
|
|
|
31 |
#if OPENSSL_VERSION_NUMBER >= 0x10100000L |
32 |
#define X509_get_notBefore X509_get0_notBefore |
33 |
#define X509_get_notAfter X509_get0_notAfter |
34 |
#define X509_STORE_CTX_get_chain X509_STORE_CTX_get1_chain |
35 |
#endif |
36 |
|
31 |
#undef _ |
37 |
#undef _ |
32 |
|
38 |
|
33 |
#include <string.h> |
39 |
#include <string.h> |
Lines 331-338
static int ssl_init (void)
Link Here
|
331 |
|
337 |
|
332 |
/* I don't think you can do this just before reading the error. The call |
338 |
/* I don't think you can do this just before reading the error. The call |
333 |
* itself might clobber the last SSL error. */ |
339 |
* itself might clobber the last SSL error. */ |
|
|
340 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L |
334 |
SSL_load_error_strings(); |
341 |
SSL_load_error_strings(); |
335 |
SSL_library_init(); |
342 |
SSL_library_init(); |
|
|
343 |
#endif |
336 |
init_complete = 1; |
344 |
init_complete = 1; |
337 |
return 0; |
345 |
return 0; |
338 |
} |
346 |
} |
Lines 740-746
static void x509_fingerprint (char *s, int l, X509 * cert, const EVP_MD *(*hashf
Link Here
|
740 |
} |
748 |
} |
741 |
} |
749 |
} |
742 |
|
750 |
|
743 |
static char *asn1time_to_string (ASN1_UTCTIME *tm) |
751 |
static char *asn1time_to_string (const ASN1_UTCTIME *tm) |
744 |
{ |
752 |
{ |
745 |
static char buf[64]; |
753 |
static char buf[64]; |
746 |
BIO *bio; |
754 |
BIO *bio; |