You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The header bn.h defines the function BN_print differently depending whether bio.h is included:
#ifdef HEADER_BIO_H
int BN_print(BIO *fp, const BIGNUM *a);
#else
int BN_print(void *fp, const BIGNUM *a);
#endif
Only one type is allowable for BN_print, the type with which the function is defined (C11 6.2.7:2 “All declarations that refer to the same object or function shall have compatible type; otherwise, the behavior is undefined”). The types void * and BIO * are not compatible, and neither are the types of functions taking one or the other as argument.
Does anyone know what problem the hack above is supposed to solve and whether it is still useful?
The text was updated successfully, but these errors were encountered:
The header
bn.h
defines the functionBN_print
differently depending whetherbio.h
is included:Only one type is allowable for
BN_print
, the type with which the function is defined (C11 6.2.7:2 “All declarations that refer to the same object or function shall have compatible type; otherwise, the behavior is undefined”). The typesvoid *
andBIO *
are not compatible, and neither are the types of functions taking one or the other as argument.Does anyone know what problem the hack above is supposed to solve and whether it is still useful?
The text was updated successfully, but these errors were encountered: