The encoding of negative ASN1 INTEGERs and the conversion of BNs to negative
[openssl.git] / crypto / asn1 / d2i_s_pu.c
index 2b1bf638c197261f37d390afaf4e8bb044fd8eda..94ea1c313b686fecb836024b7634fbe69a432e78 100644 (file)
 #include <openssl/objects.h>
 #include <openssl/asn1_mac.h>
 
+#ifdef NEG_PUBKEY_BUG
+#define d2i_ASN1_INTEGER d2i_ASN1_UINTEGER
+#endif
+
 DSA *d2i_DSAPublicKey(DSA **a, unsigned char **pp, long length)
        {
        int i=ASN1_R_PARSING;