Merge pull request #502 from anhu/enable-keygen

Let user know they need to use --enable-keygen
pull/467/merge
Sean Parkinson 2025-05-01 09:33:01 +10:00 committed by GitHub
commit baec9de5ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 2 deletions

View File

@ -52,7 +52,7 @@ int main(int argc, char** argv)
int ret = 0;
#if defined(OPENSSL_EXTRA) && !defined(NO_PWDBASED) && !defined(NO_ASN) \
&& !defined(NO_DES3)
&& !defined(NO_DES3) && defined(WOLFSSL_KEY_GEN)
int sockfd;
struct sockaddr_in servAddr;
char buff[256];
@ -152,7 +152,7 @@ int main(int argc, char** argv)
return APP_ERR;
}
wolfSSL_d2i_PKCS12_bio(bio, &pkcs12);
pkcs12 = wolfSSL_d2i_PKCS12_bio(bio, NULL);
if (!pkcs12) {
printf("Failed the d2i_PKCS12_bio call\n");
wolfSSL_CTX_free(ctx);
@ -293,6 +293,10 @@ client_example_end:
printf("wolfSSL not configured with --enable-des3\n");
#endif
#ifndef WOLFSSL_KEY_GEN
printf("wolfSSL not configured with --enable-keygen\n");
#endif
printf("Please re-configure and re-install wolfSSL before using\n"
"this example\n\n");
#endif