BUF_MEM_NEW - Online Linux Manual PageSection : 3
Updated : 2021-03-26
Source : 1.1.1k
Note : OpenSSL

NAMEBUF_MEM_new, BUF_MEM_new_ex, BUF_MEM_free, BUF_MEM_grow, BUF_MEM_grow_clean, BUF_reverse ​− simple character array structure

SYNOPSIS​ #include <openssl/buffer.h> ​ ​ BUF_MEM *BUF_MEM_new(void); ​ ​ BUF_MEM *BUF_MEM_new_ex(unsigned long flags); ​ ​ void BUF_MEM_free(BUF_MEM *a); ​ ​ int BUF_MEM_grow(BUF_MEM *str, int len); ​ size_t BUF_MEM_grow_clean(BUF_MEM *str, size_t len); ​ ​ void BUF_reverse(unsigned char *out, const unsigned char *in, size_t size);

DESCRIPTIONThe buffer library handles simple character arrays. Buffers are used for various purposes in the library, most notably memory BIOs. BUF_MEM_new() allocates a new buffer of zero size. BUF_MEM_new_ex() allocates a buffer with the specified flags. The flag BUF_MEM_FLAG_SECURE specifies that the data pointer should be allocated on the secure heap; see CRYPTO_secure_malloc(3). BUF_MEM_free() frees up an already existing buffer. The data is zeroed before freeing up in case the buffer contains sensitive data. BUF_MEM_grow() changes the size of an already existing buffer to ​len. Any data already in the buffer is preserved if it increases in size. BUF_MEM_grow_clean() is similar to BUF_MEM_grow() but it sets any free'd or additionally-allocated memory to zero. BUF_reverse() reverses size bytes at in into out. If in is NULL, the array is reversed in-place.

RETURN VALUESBUF_MEM_new() returns the buffer or NULL on error. BUF_MEM_free() has no return value. BUF_MEM_grow() and BUF_MEM_grow_clean() return zero on error or the new size (i.e., len).

SEE ALSObio(7), ​CRYPTO_secure_malloc(3).

HISTORYThe BUF_MEM_new_ex() function was added in OpenSSL 1.1.0.

COPYRIGHTCopyright 2000−2018 The OpenSSL Project Authors. All Rights Reserved. Licensed under the OpenSSL license (the License). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
0
Johanes Gumabo
Data Size   :   8,808 byte
man-BUF_MEM_free.3sslBuild   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 169,278
Visitor ID   :     :  
Visitor IP   :   3.128.168.219   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.

ERROR : Need New Coding :         (parse_manual_page_|249|B___UF_MEM_free.3ssl|36/37|el══─{─══.|.el══─{─══. ds -- \|\(em\| )         (htmlprn|149|B___UF_MEM_free.3ssl|36/37|.el══─{─══. ds --  —  |.el══─{─══. ds -- \|\(em\| )         (parse_manual_page_|249|B___UF_MEM_free.3ssl|43|br══─}─══|'br══─}─══ )         (htmlprn|149|B___UF_MEM_free.3ssl|43|'br══─}─══ |'br══─}─══ )