Lines 122-127
main(int argc, char *argv[])
Link Here
|
122 |
timestamp.Month, timestamp.Day, timestamp.Hour, timestamp.Minute, |
122 |
timestamp.Month, timestamp.Day, timestamp.Hour, timestamp.Minute, |
123 |
timestamp.Second); |
123 |
timestamp.Second); |
124 |
|
124 |
|
|
|
125 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L |
125 |
ERR_load_crypto_strings(); |
126 |
ERR_load_crypto_strings(); |
126 |
OpenSSL_add_all_digests(); |
127 |
OpenSSL_add_all_digests(); |
127 |
OpenSSL_add_all_ciphers(); |
128 |
OpenSSL_add_all_ciphers(); |
Lines 130-135
main(int argc, char *argv[])
Link Here
|
130 |
* module isn't present). In either case ignore the errors |
131 |
* module isn't present). In either case ignore the errors |
131 |
* (malloc will cause other failures out lower down */ |
132 |
* (malloc will cause other failures out lower down */ |
132 |
ERR_clear_error(); |
133 |
ERR_clear_error(); |
|
|
134 |
#endif |
133 |
|
135 |
|
134 |
BIO *cert_bio = BIO_new_file(certfile, "r"); |
136 |
BIO *cert_bio = BIO_new_file(certfile, "r"); |
135 |
X509 *cert = PEM_read_bio_X509(cert_bio, NULL, NULL, NULL); |
137 |
X509 *cert = PEM_read_bio_X509(cert_bio, NULL, NULL, NULL); |