done this without running mkerr.pl otherwise
this is what mkerr.pl would do:
* remove BIO_err_is_non_fatal from bio_err.c
* remove duplicate BIO_R_PORT_MISMATCH
* reorder/sort 3 things
* update copyright year from 2022 to 2025
see #27183
CLA: trivial
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27191)
#endif
return 1;
}
-
-#ifndef OPENSSL_NO_SOCK
-
-int BIO_err_is_non_fatal(unsigned int errcode)
-{
- if (ERR_SYSTEM_ERROR(errcode))
- return BIO_sock_non_fatal_error(ERR_GET_REASON(errcode));
- else if (ERR_GET_LIB(errcode) == ERR_LIB_BIO
- && ERR_GET_REASON(errcode) == BIO_R_NON_FATAL)
- return 1;
- else
- return 0;
-}
-
-#endif
return rv;
}
+
+#ifndef OPENSSL_NO_SOCK
+
+int BIO_err_is_non_fatal(unsigned int errcode)
+{
+ if (ERR_SYSTEM_ERROR(errcode))
+ return BIO_sock_non_fatal_error(ERR_GET_REASON(errcode));
+ else if (ERR_GET_LIB(errcode) == ERR_LIB_BIO
+ && ERR_GET_REASON(errcode) == BIO_R_NON_FATAL)
+ return 1;
+ else
+ return 0;
+}
+
+#endif