No subject

Shivakumar Poojari Shivakumar.Poojari at rbbn.com
Mon Sep 20 13:59:04 UTC 2021


Hi
#define of BIOerr and BUFerr  is deprecated in openssl3.0

# ifndef OPENSSL_NO_DEPRECATED_3_0
 #define BIOerr(f, r) ERR_raise_data(ERR_LIB_BIO, (r), NULL)
 # define BUFerr(f, r) ERR_raise_data(ERR_LIB_BUF, (r), NULL)
#endif

The BIOerr and BUFerr are used in the code something like below

BIOerr(BIO_F_BIO_NEW_MEM_BUF, BIO_R_NULL_PARAMETER);
BIOerr(BIO_F_MEM_WRITE, BIO_R_NULL_PARAMETER);
BIOerr(BIO_F_MEM_WRITE, BIO_R_WRITE_TO_READ_ONLY_BIO);
BIOerr(BIO_F_MEM_WRITE, BIO_R_NULL_PARAMETER);

 BUFerr(BUF_F_BUF_MEM_NEW, ERR_R_MALLOC_FAILURE);
 BUFerr(BUF_F_BUF_MEM_GROW, ERR_R_MALLOC_FAILURE);
 BUFerr(BUF_F_BUF_MEM_GROW_CLEAN, ERR_R_MALLOC_FAILURE);


Now im trying to replace with

void ERR_raise(int lib, int reason);

But how do i manage "f" paramater  which is highlighted in #define

please suggest,

thanks,
shiva kumar



Notice: This e-mail together with any attachments may contain information of Ribbon Communications Inc. and its Affiliates that is confidential and/or proprietary for the sole use of the intended recipient. Any review, disclosure, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please notify the sender immediately and then delete all copies, including any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20210920/60acec04/attachment.html>


More information about the openssl-users mailing list