Merge pull request #502 from anhu/enable-keygen
Let user know they need to use --enable-keygenpull/467/merge
commit
baec9de5ef
|
@ -52,7 +52,7 @@ int main(int argc, char** argv)
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
|
|
||||||
#if defined(OPENSSL_EXTRA) && !defined(NO_PWDBASED) && !defined(NO_ASN) \
|
#if defined(OPENSSL_EXTRA) && !defined(NO_PWDBASED) && !defined(NO_ASN) \
|
||||||
&& !defined(NO_DES3)
|
&& !defined(NO_DES3) && defined(WOLFSSL_KEY_GEN)
|
||||||
int sockfd;
|
int sockfd;
|
||||||
struct sockaddr_in servAddr;
|
struct sockaddr_in servAddr;
|
||||||
char buff[256];
|
char buff[256];
|
||||||
|
@ -152,7 +152,7 @@ int main(int argc, char** argv)
|
||||||
return APP_ERR;
|
return APP_ERR;
|
||||||
}
|
}
|
||||||
|
|
||||||
wolfSSL_d2i_PKCS12_bio(bio, &pkcs12);
|
pkcs12 = wolfSSL_d2i_PKCS12_bio(bio, NULL);
|
||||||
if (!pkcs12) {
|
if (!pkcs12) {
|
||||||
printf("Failed the d2i_PKCS12_bio call\n");
|
printf("Failed the d2i_PKCS12_bio call\n");
|
||||||
wolfSSL_CTX_free(ctx);
|
wolfSSL_CTX_free(ctx);
|
||||||
|
@ -293,6 +293,10 @@ client_example_end:
|
||||||
printf("wolfSSL not configured with --enable-des3\n");
|
printf("wolfSSL not configured with --enable-des3\n");
|
||||||
#endif
|
#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"
|
printf("Please re-configure and re-install wolfSSL before using\n"
|
||||||
"this example\n\n");
|
"this example\n\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue