- use BN_set_negative and BN_is_negative instead of BN_set_sign
[openssl.git] / crypto / asn1 / t_pkey.c
index 86bd2e04e42dd5b1b3d97a4c0a22bbd454b1442e..94bd37c32ea947868b8251cf656d55a1d88ffa43 100644 (file)
@@ -552,7 +552,7 @@ static int print(BIO *bp, const char *number, BIGNUM *num, unsigned char *buf,
        const char *neg;
 
        if (num == NULL) return(1);
-       neg = (BN_get_sign(num))?"-":"";
+       neg = (BN_is_negative(num))?"-":"";
        if(!BIO_indent(bp,off,128))
                return 0;
        if (BN_is_zero(num))