Let user know they need to use --enable-keygen

pull/502/head
Anthony Hu 2025-04-29 18:21:27 -04:00
parent 85733255d7
commit 83ec2dc0fd
1 changed files with 5 additions and 1 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];
@ -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