Hi there, On Fri, 22 Dec 2000, Martin Szotkowski wrote: > int BN_bn2bin(const BIGNUM *a, unsigned char *to) > > Not cardinal bug, but I used this function for get size for malloc buffer, > but this function don't verify 'to' parameter for NULL. > please put this line (or some else) into this function > > if (!to) return(n); BN_num_bytes(a) does what you want already. Ie. unsigned char *to = OPENSSL_malloc(BN_num_bytes(a)); BN_bn2bin(a, to); etc. Cheers, Geoff ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]
