summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/i2d_r_pu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1/i2d_r_pu.c')
-rw-r--r--src/lib/libcrypto/asn1/i2d_r_pu.c20
1 files changed, 7 insertions, 13 deletions
diff --git a/src/lib/libcrypto/asn1/i2d_r_pu.c b/src/lib/libcrypto/asn1/i2d_r_pu.c
index 3c54f6709d..6d01bfa8b5 100644
--- a/src/lib/libcrypto/asn1/i2d_r_pu.c
+++ b/src/lib/libcrypto/asn1/i2d_r_pu.c
@@ -56,21 +56,15 @@
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/* 67int i2d_RSAPublicKey(RSA *a, unsigned char **pp)
67 * ASN1err(ASN1_F_D2I_RSAPUBLICKEY,ASN1_R_LENGTH_MISMATCH);
68 * ASN1err(ASN1_F_I2D_RSAPUBLICKEY,ASN1_R_UNKNOWN_ATTRIBUTE_TYPE);
69 */
70
71int i2d_RSAPublicKey(a,pp)
72RSA *a;
73unsigned char **pp;
74 { 68 {
75 BIGNUM *num[2]; 69 BIGNUM *num[2];
76 ASN1_INTEGER bs; 70 ASN1_INTEGER bs;
@@ -115,4 +109,4 @@ unsigned char **pp;
115 *pp=p; 109 *pp=p;
116 return(t); 110 return(t);
117 } 111 }
118 112#endif