summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/d2i_r_pu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/d2i_r_pu.c')
-rw-r--r--src/lib/libcrypto/asn1/d2i_r_pu.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/src/lib/libcrypto/asn1/d2i_r_pu.c b/src/lib/libcrypto/asn1/d2i_r_pu.c
index 778b792b1e..c4ae58b594 100644
--- a/src/lib/libcrypto/asn1/d2i_r_pu.c
+++ b/src/lib/libcrypto/asn1/d2i_r_pu.c
@@ -56,22 +56,19 @@
56 * [including the GNU Public Licence.] 56 * [including the GNU Public Licence.]
57 */ 57 */
58 58
59#ifndef NO_RSA
59#include <stdio.h> 60#include <stdio.h>
60#include "cryptlib.h" 61#include "cryptlib.h"
61#include "bn.h" 62#include <openssl/bn.h>
62#include "rsa.h" 63#include <openssl/rsa.h>
63#include "objects.h" 64#include <openssl/objects.h>
64#include "asn1_mac.h" 65#include <openssl/asn1_mac.h>
65 66
66/* 67#ifdef NEG_PUBKEY_BUG
67 * ASN1err(ASN1_F_D2I_RSAPUBLICKEY,ASN1_R_LENGTH_MISMATCH); 68#define d2i_ASN1_INTEGER d2i_ASN1_UINTEGER
68 * ASN1err(ASN1_F_I2D_RSAPUBLICKEY,ASN1_R_UNKNOWN_ATTRIBUTE_TYPE); 69#endif
69 */
70 70
71RSA *d2i_RSAPublicKey(a,pp,length) 71RSA *d2i_RSAPublicKey(RSA **a, unsigned char **pp, long length)
72RSA **a;
73unsigned char **pp;
74long length;
75 { 72 {
76 int i=ASN1_R_PARSING; 73 int i=ASN1_R_PARSING;
77 ASN1_INTEGER *bs=NULL; 74 ASN1_INTEGER *bs=NULL;
@@ -97,4 +94,4 @@ err:
97 if (bs != NULL) ASN1_INTEGER_free(bs); 94 if (bs != NULL) ASN1_INTEGER_free(bs);
98 return(NULL); 95 return(NULL);
99 } 96 }
100 97#endif