mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
80 characters limit fix
This commit is contained in:
@ -2462,14 +2462,18 @@ int InitSSL_Ctx(WOLFSSL_CTX* ctx, WOLFSSL_METHOD* method, void* heap)
|
|||||||
XMEMSET(ctx->param, 0, sizeof(WOLFSSL_X509_VERIFY_PARAM));
|
XMEMSET(ctx->param, 0, sizeof(WOLFSSL_X509_VERIFY_PARAM));
|
||||||
|
|
||||||
/* WOLFSSL_X509_LOOKUP */
|
/* WOLFSSL_X509_LOOKUP */
|
||||||
if ((ctx->x509_store.lookup.dirs = (WOLFSSL_BY_DIR*)XMALLOC(sizeof(WOLFSSL_BY_DIR), heap, DYNAMIC_TYPE_OPENSSL)) == NULL) {
|
if ((ctx->x509_store.lookup.dirs = (WOLFSSL_BY_DIR*)XMALLOC(
|
||||||
|
sizeof(WOLFSSL_BY_DIR),
|
||||||
|
heap, DYNAMIC_TYPE_OPENSSL)) == NULL) {
|
||||||
WOLFSSL_MSG("ctx-x509_store.lookup.dirs: allocation error");
|
WOLFSSL_MSG("ctx-x509_store.lookup.dirs: allocation error");
|
||||||
return MEMORY_E;
|
return MEMORY_E;
|
||||||
}
|
}
|
||||||
XMEMSET(ctx->x509_store.lookup.dirs, 0, sizeof(WOLFSSL_BY_DIR));
|
XMEMSET(ctx->x509_store.lookup.dirs, 0, sizeof(WOLFSSL_BY_DIR));
|
||||||
|
|
||||||
/* param */
|
/* param */
|
||||||
if ((ctx->x509_store.param = (WOLFSSL_X509_VERIFY_PARAM*)XMALLOC(sizeof(WOLFSSL_X509_VERIFY_PARAM), heap, DYNAMIC_TYPE_OPENSSL)) == NULL) {
|
if ((ctx->x509_store.param = (WOLFSSL_X509_VERIFY_PARAM*)XMALLOC(
|
||||||
|
sizeof(WOLFSSL_X509_VERIFY_PARAM),
|
||||||
|
heap, DYNAMIC_TYPE_OPENSSL)) == NULL) {
|
||||||
WOLFSSL_MSG("ctx->x509_store.param: allocation error");
|
WOLFSSL_MSG("ctx->x509_store.param: allocation error");
|
||||||
return MEMORY_E;
|
return MEMORY_E;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user