forked from wolfSSL/wolfssl
fix example client error print out and ASN1_TIME_print after rebase
This commit is contained in:
@@ -2005,8 +2005,8 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
|
|||||||
ret = NonBlockingSSL_Connect(ssl); /* will keep retrying on timeout */
|
ret = NonBlockingSSL_Connect(ssl); /* will keep retrying on timeout */
|
||||||
#endif
|
#endif
|
||||||
if (ret != WOLFSSL_SUCCESS) {
|
if (ret != WOLFSSL_SUCCESS) {
|
||||||
printf("wolfSSL_connect error %d, %s\n", ret,
|
printf("wolfSSL_connect error %d, %s\n", err,
|
||||||
wolfSSL_ERR_error_string(ret, buffer));
|
wolfSSL_ERR_error_string(err, buffer));
|
||||||
wolfSSL_free(ssl);
|
wolfSSL_free(ssl);
|
||||||
wolfSSL_CTX_free(ctx);
|
wolfSSL_CTX_free(ctx);
|
||||||
err_sys("wolfSSL_connect failed");
|
err_sys("wolfSSL_connect failed");
|
||||||
|
@@ -924,6 +924,8 @@ WOLFSSL_API WOLFSSL_ASN1_INTEGER* wolfSSL_X509_get_serialNumber(WOLFSSL_X509*);
|
|||||||
|
|
||||||
WOLFSSL_API int wolfSSL_ASN1_TIME_print(WOLFSSL_BIO*, const WOLFSSL_ASN1_TIME*);
|
WOLFSSL_API int wolfSSL_ASN1_TIME_print(WOLFSSL_BIO*, const WOLFSSL_ASN1_TIME*);
|
||||||
|
|
||||||
|
WOLFSSL_API char* wolfSSL_ASN1_TIME_to_string(WOLFSSL_ASN1_TIME* time,
|
||||||
|
char* buf, int len);
|
||||||
WOLFSSL_API int wolfSSL_ASN1_INTEGER_cmp(const WOLFSSL_ASN1_INTEGER*,
|
WOLFSSL_API int wolfSSL_ASN1_INTEGER_cmp(const WOLFSSL_ASN1_INTEGER*,
|
||||||
const WOLFSSL_ASN1_INTEGER*);
|
const WOLFSSL_ASN1_INTEGER*);
|
||||||
WOLFSSL_API long wolfSSL_ASN1_INTEGER_get(const WOLFSSL_ASN1_INTEGER*);
|
WOLFSSL_API long wolfSSL_ASN1_INTEGER_get(const WOLFSSL_ASN1_INTEGER*);
|
||||||
@@ -2412,11 +2414,6 @@ WOLFSSL_API int wolfSSL_accept_ex(WOLFSSL*, HandShakeCallBack, TimeoutCallBack,
|
|||||||
WOLFSSL_API void wolfSSL_cert_service(void);
|
WOLFSSL_API void wolfSSL_cert_service(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WOLFSSL_MYSQL_COMPATIBLE) || defined(WOLFSSL_NGINX) || defined(WOLFSSL_HAPROXY)
|
|
||||||
WOLFSSL_API char* wolfSSL_ASN1_TIME_to_string(WOLFSSL_ASN1_TIME* time,
|
|
||||||
char* buf, int len);
|
|
||||||
#endif /* WOLFSSL_MYSQL_COMPATIBLE */
|
|
||||||
|
|
||||||
#ifdef OPENSSL_EXTRA
|
#ifdef OPENSSL_EXTRA
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
|
Reference in New Issue
Block a user