summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/t_pkey.c
diff options
context:
space:
mode:
authorbeck <>2002-05-15 02:29:21 +0000
committerbeck <>2002-05-15 02:29:21 +0000
commitb64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9 (patch)
treefa27cf82a1250b64ed3bf5f4a18c7354d470bbcc /src/lib/libcrypto/asn1/t_pkey.c
parente471e1ea98d673597b182ea85f29e30c97cd08b5 (diff)
downloadopenbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.tar.gz
openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.tar.bz2
openbsd-b64270d1e45fe7f3241e4c9b6ce60d5ac89bc2e9.zip
OpenSSL 0.9.7 stable 2002 05 08 merge
Diffstat (limited to 'src/lib/libcrypto/asn1/t_pkey.c')
-rw-r--r--src/lib/libcrypto/asn1/t_pkey.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/lib/libcrypto/asn1/t_pkey.c b/src/lib/libcrypto/asn1/t_pkey.c
index ae18da96e3..8060115202 100644
--- a/src/lib/libcrypto/asn1/t_pkey.c
+++ b/src/lib/libcrypto/asn1/t_pkey.c
@@ -60,21 +60,21 @@
60#include "cryptlib.h" 60#include "cryptlib.h"
61#include <openssl/buffer.h> 61#include <openssl/buffer.h>
62#include <openssl/bn.h> 62#include <openssl/bn.h>
63#ifndef NO_RSA 63#ifndef OPENSSL_NO_RSA
64#include <openssl/rsa.h> 64#include <openssl/rsa.h>
65#endif 65#endif
66#ifndef NO_DH 66#ifndef OPENSSL_NO_DH
67#include <openssl/dh.h> 67#include <openssl/dh.h>
68#endif 68#endif
69#ifndef NO_DSA 69#ifndef OPENSSL_NO_DSA
70#include <openssl/dsa.h> 70#include <openssl/dsa.h>
71#endif 71#endif
72 72
73static int print(BIO *fp,const char *str,BIGNUM *num, 73static int print(BIO *fp,const char *str,BIGNUM *num,
74 unsigned char *buf,int off); 74 unsigned char *buf,int off);
75#ifndef NO_RSA 75#ifndef OPENSSL_NO_RSA
76#ifndef NO_FP_API 76#ifndef OPENSSL_NO_FP_API
77int RSA_print_fp(FILE *fp, RSA *x, int off) 77int RSA_print_fp(FILE *fp, const RSA *x, int off)
78 { 78 {
79 BIO *b; 79 BIO *b;
80 int ret; 80 int ret;
@@ -91,7 +91,7 @@ int RSA_print_fp(FILE *fp, RSA *x, int off)
91 } 91 }
92#endif 92#endif
93 93
94int RSA_print(BIO *bp, RSA *x, int off) 94int RSA_print(BIO *bp, const RSA *x, int off)
95 { 95 {
96 char str[128]; 96 char str[128];
97 const char *s; 97 const char *s;
@@ -136,11 +136,11 @@ err:
136 if (m != NULL) OPENSSL_free(m); 136 if (m != NULL) OPENSSL_free(m);
137 return(ret); 137 return(ret);
138 } 138 }
139#endif /* NO_RSA */ 139#endif /* OPENSSL_NO_RSA */
140 140
141#ifndef NO_DSA 141#ifndef OPENSSL_NO_DSA
142#ifndef NO_FP_API 142#ifndef OPENSSL_NO_FP_API
143int DSA_print_fp(FILE *fp, DSA *x, int off) 143int DSA_print_fp(FILE *fp, const DSA *x, int off)
144 { 144 {
145 BIO *b; 145 BIO *b;
146 int ret; 146 int ret;
@@ -157,7 +157,7 @@ int DSA_print_fp(FILE *fp, DSA *x, int off)
157 } 157 }
158#endif 158#endif
159 159
160int DSA_print(BIO *bp, DSA *x, int off) 160int DSA_print(BIO *bp, const DSA *x, int off)
161 { 161 {
162 char str[128]; 162 char str[128];
163 unsigned char *m=NULL; 163 unsigned char *m=NULL;
@@ -207,7 +207,7 @@ err:
207 if (m != NULL) OPENSSL_free(m); 207 if (m != NULL) OPENSSL_free(m);
208 return(ret); 208 return(ret);
209 } 209 }
210#endif /* !NO_DSA */ 210#endif /* !OPENSSL_NO_DSA */
211 211
212static int print(BIO *bp, const char *number, BIGNUM *num, unsigned char *buf, 212static int print(BIO *bp, const char *number, BIGNUM *num, unsigned char *buf,
213 int off) 213 int off)
@@ -259,9 +259,9 @@ static int print(BIO *bp, const char *number, BIGNUM *num, unsigned char *buf,
259 return(1); 259 return(1);
260 } 260 }
261 261
262#ifndef NO_DH 262#ifndef OPENSSL_NO_DH
263#ifndef NO_FP_API 263#ifndef OPENSSL_NO_FP_API
264int DHparams_print_fp(FILE *fp, DH *x) 264int DHparams_print_fp(FILE *fp, const DH *x)
265 { 265 {
266 BIO *b; 266 BIO *b;
267 int ret; 267 int ret;
@@ -278,7 +278,7 @@ int DHparams_print_fp(FILE *fp, DH *x)
278 } 278 }
279#endif 279#endif
280 280
281int DHparams_print(BIO *bp, DH *x) 281int DHparams_print(BIO *bp, const DH *x)
282 { 282 {
283 unsigned char *m=NULL; 283 unsigned char *m=NULL;
284 int reason=ERR_R_BUF_LIB,i,ret=0; 284 int reason=ERR_R_BUF_LIB,i,ret=0;
@@ -312,9 +312,9 @@ err:
312 } 312 }
313#endif 313#endif
314 314
315#ifndef NO_DSA 315#ifndef OPENSSL_NO_DSA
316#ifndef NO_FP_API 316#ifndef OPENSSL_NO_FP_API
317int DSAparams_print_fp(FILE *fp, DSA *x) 317int DSAparams_print_fp(FILE *fp, const DSA *x)
318 { 318 {
319 BIO *b; 319 BIO *b;
320 int ret; 320 int ret;
@@ -331,7 +331,7 @@ int DSAparams_print_fp(FILE *fp, DSA *x)
331 } 331 }
332#endif 332#endif
333 333
334int DSAparams_print(BIO *bp, DSA *x) 334int DSAparams_print(BIO *bp, const DSA *x)
335 { 335 {
336 unsigned char *m=NULL; 336 unsigned char *m=NULL;
337 int reason=ERR_R_BUF_LIB,i,ret=0; 337 int reason=ERR_R_BUF_LIB,i,ret=0;
@@ -357,5 +357,5 @@ err:
357 return(ret); 357 return(ret);
358 } 358 }
359 359
360#endif /* !NO_DSA */ 360#endif /* !OPENSSL_NO_DSA */
361 361