forked from wolfSSL/wolfssl
mem_buf
only used with memory and pair BIOs
This commit is contained in:
@@ -55994,9 +55994,8 @@ int wolfSSL_CONF_cmd(WOLFSSL_CONF_CTX* cctx, const char* cmd, const char* value)
|
|||||||
bio->shutdown = BIO_CLOSE; /* default to close things */
|
bio->shutdown = BIO_CLOSE; /* default to close things */
|
||||||
bio->num = SOCKET_INVALID; /* Default to invalid socket */
|
bio->num = SOCKET_INVALID; /* Default to invalid socket */
|
||||||
bio->init = 1;
|
bio->init = 1;
|
||||||
if (method->type != WOLFSSL_BIO_FILE &&
|
if (method->type == WOLFSSL_BIO_MEMORY ||
|
||||||
method->type != WOLFSSL_BIO_SOCKET &&
|
method->type == WOLFSSL_BIO_BIO) {
|
||||||
method->type != WOLFSSL_BIO_MD) {
|
|
||||||
bio->mem_buf =(WOLFSSL_BUF_MEM*)XMALLOC(sizeof(WOLFSSL_BUF_MEM),
|
bio->mem_buf =(WOLFSSL_BUF_MEM*)XMALLOC(sizeof(WOLFSSL_BUF_MEM),
|
||||||
0, DYNAMIC_TYPE_OPENSSL);
|
0, DYNAMIC_TYPE_OPENSSL);
|
||||||
if (bio->mem_buf == NULL) {
|
if (bio->mem_buf == NULL) {
|
||||||
|
Reference in New Issue
Block a user