Lines 620-626
int makecert_context_output_certificate_file(MAKECERT_CONTEXT* context, char* pa
Link Here
|
620 |
printf("Using default export password \"password\"\n"); |
620 |
printf("Using default export password \"password\"\n"); |
621 |
} |
621 |
} |
622 |
|
622 |
|
623 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L |
623 |
#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) |
624 |
OpenSSL_add_all_algorithms(); |
624 |
OpenSSL_add_all_algorithms(); |
625 |
OpenSSL_add_all_ciphers(); |
625 |
OpenSSL_add_all_ciphers(); |
626 |
OpenSSL_add_all_digests(); |
626 |
OpenSSL_add_all_digests(); |
Lines 1008-1014
int makecert_context_process(MAKECERT_CONTEXT* context, int argc, char** argv)
Link Here
|
1008 |
key_length = atoi(arg->Value); |
1008 |
key_length = atoi(arg->Value); |
1009 |
} |
1009 |
} |
1010 |
|
1010 |
|
1011 |
#if (OPENSSL_VERSION_NUMBER < 0x10100000L) |
1011 |
#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) |
1012 |
context->rsa = RSA_generate_key(key_length, RSA_F4, NULL, NULL); |
1012 |
context->rsa = RSA_generate_key(key_length, RSA_F4, NULL, NULL); |
1013 |
#else |
1013 |
#else |
1014 |
{ |
1014 |
{ |
Lines 1043-1049
int makecert_context_process(MAKECERT_CONTEXT* context, int argc, char** argv)
Link Here
|
1043 |
{ |
1043 |
{ |
1044 |
ASN1_TIME* before; |
1044 |
ASN1_TIME* before; |
1045 |
ASN1_TIME* after; |
1045 |
ASN1_TIME* after; |
1046 |
#if (OPENSSL_VERSION_NUMBER < 0x10100000L) |
1046 |
#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) |
1047 |
before = X509_get_notBefore(context->x509); |
1047 |
before = X509_get_notBefore(context->x509); |
1048 |
after = X509_get_notAfter(context->x509); |
1048 |
after = X509_get_notAfter(context->x509); |
1049 |
#else |
1049 |
#else |