ERR_GET_LIB
switch (ERR_GET_LIB(pem_err)) {
if (ERR_GET_LIB(err) != ERR_LIB_SSL)
if (ERR_GET_LIB(err) != ERR_LIB_SSL)
if (ERR_GET_LIB(err) == ERR_LIB_PKCS12
&& ERR_GET_LIB(error) == ERR_LIB_EVP
else if (ERR_GET_LIB(errcode) == ERR_LIB_BIO
if (ERR_GET_LIB(err) == ERR_LIB_BIO) {
if (ERR_GET_LIB(err) == ERR_LIB_BN
if (ERR_GET_LIB(err) == ERR_LIB_BN
ret = l ^ ERR_GET_LIB(l);
l = ERR_GET_LIB(e);
l = ERR_GET_LIB(e);
l = ERR_GET_LIB(e);
put_error(ERR_GET_LIB(err), func, err, file, line);
int lib = ERR_GET_LIB(err);
if (ERR_GET_LIB(err) != ERR_LIB_EVP
if (ERR_GET_LIB(reasonstrings[cnt].id) != 0)
if (ERR_GET_LIB(reason) != 0) {
ERR_vset_error(ERR_GET_LIB(reason), ERR_GET_REASON(reason), fmt, args);
if (ERR_GET_LIB(error) == ERR_LIB_BN
if (ERR_GET_LIB(err) == ERR_LIB_ASN1
lib = ERR_GET_LIB(err);
&& ERR_GET_LIB(err) == ERR_LIB_OSSL_DECODER
if (ERR_GET_LIB(l) == ERR_LIB_SYS)
if (ERR_GET_LIB(err) == ERR_LIB_PEM
int l = ERR_GET_LIB(err);
if (ERR_GET_LIB(errcode) != ERR_LIB_ASN1)
if (!TEST_int_eq(ERR_GET_LIB(err), ERR_LIB_CMS))
|| !TEST_true(ERR_GET_LIB(ERR_peek_last_error()) == ERR_LIB_EC)
|| !TEST_true(ERR_GET_LIB(ERR_peek_last_error()) == ERR_LIB_EC)
|| !TEST_int_eq(ERR_GET_LIB(ERR_peek_error()), ERR_LIB_OBJ)
int lib = ERR_GET_LIB(err);
&& TEST_int_ne(ERR_GET_LIB(ERR_peek_error()), ERR_LIB_OSSL_STORE)
if (!TEST_size_t_eq((size_t)ERR_GET_LIB(ERR_peek_last_error()), op->arg1))
if (!TEST_true(ERR_GET_LIB(err) == ERR_LIB_SSL && ERR_GET_REASON(err) == ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED))
if (!TEST_size_t_eq((size_t)ERR_GET_LIB(ERR_peek_last_error()),
if (ERR_GET_LIB(err) == ERR_LIB_SSL