diff options
Diffstat (limited to 'src/lib/libcrypto/pem')
| -rw-r--r-- | src/lib/libcrypto/pem/pem.h | 18 | ||||
| -rw-r--r-- | src/lib/libcrypto/pem/pem_all.c | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/pem/pem_info.c | 2 | ||||
| -rw-r--r-- | src/lib/libcrypto/pem/pem_lib.c | 15 | ||||
| -rw-r--r-- | src/lib/libcrypto/pem/pem_pk8.c | 2 | ||||
| -rw-r--r-- | src/lib/libcrypto/pem/pem_pkey.c | 2 |
6 files changed, 0 insertions, 45 deletions
diff --git a/src/lib/libcrypto/pem/pem.h b/src/lib/libcrypto/pem/pem.h index 6eae9345a1..daf5b1375d 100644 --- a/src/lib/libcrypto/pem/pem.h +++ b/src/lib/libcrypto/pem/pem.h | |||
| @@ -206,15 +206,6 @@ typedef struct pem_ctx_st { | |||
| 206 | * IMPLEMENT_PEM_rw(...) or IMPLEMENT_PEM_rw_cb(...) | 206 | * IMPLEMENT_PEM_rw(...) or IMPLEMENT_PEM_rw_cb(...) |
| 207 | */ | 207 | */ |
| 208 | 208 | ||
| 209 | #ifdef OPENSSL_NO_FP_API | ||
| 210 | |||
| 211 | #define IMPLEMENT_PEM_read_fp(name, type, str, asn1) /**/ | ||
| 212 | #define IMPLEMENT_PEM_write_fp(name, type, str, asn1) /**/ | ||
| 213 | #define IMPLEMENT_PEM_write_fp_const(name, type, str, asn1) /**/ | ||
| 214 | #define IMPLEMENT_PEM_write_cb_fp(name, type, str, asn1) /**/ | ||
| 215 | #define IMPLEMENT_PEM_write_cb_fp_const(name, type, str, asn1) /**/ | ||
| 216 | |||
| 217 | #else | ||
| 218 | 209 | ||
| 219 | #define IMPLEMENT_PEM_read_fp(name, type, str, asn1) \ | 210 | #define IMPLEMENT_PEM_read_fp(name, type, str, asn1) \ |
| 220 | type *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u)\ | 211 | type *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u)\ |
| @@ -250,7 +241,6 @@ int PEM_write_##name(FILE *fp, type *x, const EVP_CIPHER *enc, \ | |||
| 250 | return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u); \ | 241 | return PEM_ASN1_write((i2d_of_void *)i2d_##asn1,str,fp,x,enc,kstr,klen,cb,u); \ |
| 251 | } | 242 | } |
| 252 | 243 | ||
| 253 | #endif | ||
| 254 | 244 | ||
| 255 | #define IMPLEMENT_PEM_read_bio(name, type, str, asn1) \ | 245 | #define IMPLEMENT_PEM_read_bio(name, type, str, asn1) \ |
| 256 | type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u)\ | 246 | type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u)\ |
| @@ -318,13 +308,6 @@ int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \ | |||
| 318 | 308 | ||
| 319 | /* These are the same except they are for the declarations */ | 309 | /* These are the same except they are for the declarations */ |
| 320 | 310 | ||
| 321 | #if defined(OPENSSL_NO_FP_API) | ||
| 322 | |||
| 323 | #define DECLARE_PEM_read_fp(name, type) /**/ | ||
| 324 | #define DECLARE_PEM_write_fp(name, type) /**/ | ||
| 325 | #define DECLARE_PEM_write_cb_fp(name, type) /**/ | ||
| 326 | |||
| 327 | #else | ||
| 328 | 311 | ||
| 329 | #define DECLARE_PEM_read_fp(name, type) \ | 312 | #define DECLARE_PEM_read_fp(name, type) \ |
| 330 | type *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u); | 313 | type *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u); |
| @@ -339,7 +322,6 @@ int PEM_write_bio_##name(BIO *bp, type *x, const EVP_CIPHER *enc, \ | |||
| 339 | int PEM_write_##name(FILE *fp, type *x, const EVP_CIPHER *enc, \ | 322 | int PEM_write_##name(FILE *fp, type *x, const EVP_CIPHER *enc, \ |
| 340 | unsigned char *kstr, int klen, pem_password_cb *cb, void *u); | 323 | unsigned char *kstr, int klen, pem_password_cb *cb, void *u); |
| 341 | 324 | ||
| 342 | #endif | ||
| 343 | 325 | ||
| 344 | #ifndef OPENSSL_NO_BIO | 326 | #ifndef OPENSSL_NO_BIO |
| 345 | #define DECLARE_PEM_read_bio(name, type) \ | 327 | #define DECLARE_PEM_read_bio(name, type) \ |
diff --git a/src/lib/libcrypto/pem/pem_all.c b/src/lib/libcrypto/pem/pem_all.c index 8b54d1a698..2cca8fbc39 100644 --- a/src/lib/libcrypto/pem/pem_all.c +++ b/src/lib/libcrypto/pem/pem_all.c | |||
| @@ -186,7 +186,6 @@ PEM_read_bio_RSAPrivateKey(BIO *bp, RSA **rsa, pem_password_cb *cb, void *u) | |||
| 186 | return pkey_get_rsa(pktmp, rsa); | 186 | return pkey_get_rsa(pktmp, rsa); |
| 187 | } | 187 | } |
| 188 | 188 | ||
| 189 | #ifndef OPENSSL_NO_FP_API | ||
| 190 | 189 | ||
| 191 | RSA * | 190 | RSA * |
| 192 | PEM_read_RSAPrivateKey(FILE *fp, RSA **rsa, pem_password_cb *cb, void *u) | 191 | PEM_read_RSAPrivateKey(FILE *fp, RSA **rsa, pem_password_cb *cb, void *u) |
| @@ -197,7 +196,6 @@ PEM_read_RSAPrivateKey(FILE *fp, RSA **rsa, pem_password_cb *cb, void *u) | |||
| 197 | return pkey_get_rsa(pktmp, rsa); | 196 | return pkey_get_rsa(pktmp, rsa); |
| 198 | } | 197 | } |
| 199 | 198 | ||
| 200 | #endif | ||
| 201 | 199 | ||
| 202 | IMPLEMENT_PEM_write_cb_const(RSAPrivateKey, RSA, PEM_STRING_RSA, RSAPrivateKey) | 200 | IMPLEMENT_PEM_write_cb_const(RSAPrivateKey, RSA, PEM_STRING_RSA, RSAPrivateKey) |
| 203 | 201 | ||
| @@ -239,7 +237,6 @@ IMPLEMENT_PEM_write_cb_const(DSAPrivateKey, DSA, PEM_STRING_DSA, DSAPrivateKey) | |||
| 239 | 237 | ||
| 240 | IMPLEMENT_PEM_rw(DSA_PUBKEY, DSA, PEM_STRING_PUBLIC, DSA_PUBKEY) | 238 | IMPLEMENT_PEM_rw(DSA_PUBKEY, DSA, PEM_STRING_PUBLIC, DSA_PUBKEY) |
| 241 | 239 | ||
| 242 | #ifndef OPENSSL_NO_FP_API | ||
| 243 | 240 | ||
| 244 | DSA * | 241 | DSA * |
| 245 | PEM_read_DSAPrivateKey(FILE *fp, DSA **dsa, pem_password_cb *cb, void *u) | 242 | PEM_read_DSAPrivateKey(FILE *fp, DSA **dsa, pem_password_cb *cb, void *u) |
| @@ -250,7 +247,6 @@ PEM_read_DSAPrivateKey(FILE *fp, DSA **dsa, pem_password_cb *cb, void *u) | |||
| 250 | return pkey_get_dsa(pktmp, dsa); /* will free pktmp */ | 247 | return pkey_get_dsa(pktmp, dsa); /* will free pktmp */ |
| 251 | } | 248 | } |
| 252 | 249 | ||
| 253 | #endif | ||
| 254 | 250 | ||
| 255 | IMPLEMENT_PEM_rw_const(DSAparams, DSA, PEM_STRING_DSAPARAMS, DSAparams) | 251 | IMPLEMENT_PEM_rw_const(DSAparams, DSA, PEM_STRING_DSAPARAMS, DSAparams) |
| 256 | 252 | ||
| @@ -292,7 +288,6 @@ IMPLEMENT_PEM_write_cb(ECPrivateKey, EC_KEY, PEM_STRING_ECPRIVATEKEY, | |||
| 292 | 288 | ||
| 293 | IMPLEMENT_PEM_rw(EC_PUBKEY, EC_KEY, PEM_STRING_PUBLIC, EC_PUBKEY) | 289 | IMPLEMENT_PEM_rw(EC_PUBKEY, EC_KEY, PEM_STRING_PUBLIC, EC_PUBKEY) |
| 294 | 290 | ||
| 295 | #ifndef OPENSSL_NO_FP_API | ||
| 296 | 291 | ||
| 297 | EC_KEY * | 292 | EC_KEY * |
| 298 | PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, void *u) | 293 | PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, void *u) |
| @@ -303,7 +298,6 @@ PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, void *u) | |||
| 303 | return pkey_get_eckey(pktmp, eckey); /* will free pktmp */ | 298 | return pkey_get_eckey(pktmp, eckey); /* will free pktmp */ |
| 304 | } | 299 | } |
| 305 | 300 | ||
| 306 | #endif | ||
| 307 | 301 | ||
| 308 | #endif | 302 | #endif |
| 309 | 303 | ||
diff --git a/src/lib/libcrypto/pem/pem_info.c b/src/lib/libcrypto/pem/pem_info.c index 967d6d2d41..40600e30f3 100644 --- a/src/lib/libcrypto/pem/pem_info.c +++ b/src/lib/libcrypto/pem/pem_info.c | |||
| @@ -70,7 +70,6 @@ | |||
| 70 | #include <openssl/dsa.h> | 70 | #include <openssl/dsa.h> |
| 71 | #endif | 71 | #endif |
| 72 | 72 | ||
| 73 | #ifndef OPENSSL_NO_FP_API | ||
| 74 | STACK_OF(X509_INFO) * | 73 | STACK_OF(X509_INFO) * |
| 75 | PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb, | 74 | PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb, |
| 76 | void *u) | 75 | void *u) |
| @@ -87,7 +86,6 @@ PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb, | |||
| 87 | BIO_free(b); | 86 | BIO_free(b); |
| 88 | return (ret); | 87 | return (ret); |
| 89 | } | 88 | } |
| 90 | #endif | ||
| 91 | 89 | ||
| 92 | STACK_OF(X509_INFO) * | 90 | STACK_OF(X509_INFO) * |
| 93 | PEM_X509_INFO_read_bio(BIO *bp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb, | 91 | PEM_X509_INFO_read_bio(BIO *bp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb, |
diff --git a/src/lib/libcrypto/pem/pem_lib.c b/src/lib/libcrypto/pem/pem_lib.c index 9bc2b27285..58d2bfbee9 100644 --- a/src/lib/libcrypto/pem/pem_lib.c +++ b/src/lib/libcrypto/pem/pem_lib.c | |||
| @@ -85,12 +85,6 @@ int pem_check_suffix(const char *pem_str, const char *suffix); | |||
| 85 | int | 85 | int |
| 86 | PEM_def_callback(char *buf, int num, int w, void *key) | 86 | PEM_def_callback(char *buf, int num, int w, void *key) |
| 87 | { | 87 | { |
| 88 | #ifdef OPENSSL_NO_FP_API | ||
| 89 | /* We should not ever call the default callback routine from | ||
| 90 | * windows. */ | ||
| 91 | PEMerr(PEM_F_PEM_DEF_CALLBACK, ERR_R_SHOULD_NOT_HAVE_BEEN_CALLED); | ||
| 92 | return (-1); | ||
| 93 | #else | ||
| 94 | int i, j; | 88 | int i, j; |
| 95 | const char *prompt; | 89 | const char *prompt; |
| 96 | 90 | ||
| @@ -120,7 +114,6 @@ PEM_def_callback(char *buf, int num, int w, void *key) | |||
| 120 | break; | 114 | break; |
| 121 | } | 115 | } |
| 122 | return (j); | 116 | return (j); |
| 123 | #endif | ||
| 124 | } | 117 | } |
| 125 | 118 | ||
| 126 | void | 119 | void |
| @@ -163,7 +156,6 @@ PEM_dek_info(char *buf, const char *type, int len, char *str) | |||
| 163 | buf[j + i * 2 + 1] = '\0'; | 156 | buf[j + i * 2 + 1] = '\0'; |
| 164 | } | 157 | } |
| 165 | 158 | ||
| 166 | #ifndef OPENSSL_NO_FP_API | ||
| 167 | void * | 159 | void * |
| 168 | PEM_ASN1_read(d2i_of_void *d2i, const char *name, FILE *fp, void **x, | 160 | PEM_ASN1_read(d2i_of_void *d2i, const char *name, FILE *fp, void **x, |
| 169 | pem_password_cb *cb, void *u) | 161 | pem_password_cb *cb, void *u) |
| @@ -180,7 +172,6 @@ PEM_ASN1_read(d2i_of_void *d2i, const char *name, FILE *fp, void **x, | |||
| 180 | BIO_free(b); | 172 | BIO_free(b); |
| 181 | return (ret); | 173 | return (ret); |
| 182 | } | 174 | } |
| 183 | #endif | ||
| 184 | 175 | ||
| 185 | static int | 176 | static int |
| 186 | check_pem(const char *nm, const char *name) | 177 | check_pem(const char *nm, const char *name) |
| @@ -320,7 +311,6 @@ err: | |||
| 320 | return ret; | 311 | return ret; |
| 321 | } | 312 | } |
| 322 | 313 | ||
| 323 | #ifndef OPENSSL_NO_FP_API | ||
| 324 | int | 314 | int |
| 325 | PEM_ASN1_write(i2d_of_void *i2d, const char *name, FILE *fp, void *x, | 315 | PEM_ASN1_write(i2d_of_void *i2d, const char *name, FILE *fp, void *x, |
| 326 | const EVP_CIPHER *enc, unsigned char *kstr, int klen, | 316 | const EVP_CIPHER *enc, unsigned char *kstr, int klen, |
| @@ -338,7 +328,6 @@ PEM_ASN1_write(i2d_of_void *i2d, const char *name, FILE *fp, void *x, | |||
| 338 | BIO_free(b); | 328 | BIO_free(b); |
| 339 | return (ret); | 329 | return (ret); |
| 340 | } | 330 | } |
| 341 | #endif | ||
| 342 | 331 | ||
| 343 | int | 332 | int |
| 344 | PEM_ASN1_write_bio(i2d_of_void *i2d, const char *name, BIO *bp, void *x, | 333 | PEM_ASN1_write_bio(i2d_of_void *i2d, const char *name, BIO *bp, void *x, |
| @@ -576,7 +565,6 @@ load_iv(char **fromp, unsigned char *to, int num) | |||
| 576 | return (1); | 565 | return (1); |
| 577 | } | 566 | } |
| 578 | 567 | ||
| 579 | #ifndef OPENSSL_NO_FP_API | ||
| 580 | int | 568 | int |
| 581 | PEM_write(FILE *fp, char *name, char *header, unsigned char *data, long len) | 569 | PEM_write(FILE *fp, char *name, char *header, unsigned char *data, long len) |
| 582 | { | 570 | { |
| @@ -592,7 +580,6 @@ PEM_write(FILE *fp, char *name, char *header, unsigned char *data, long len) | |||
| 592 | BIO_free(b); | 580 | BIO_free(b); |
| 593 | return (ret); | 581 | return (ret); |
| 594 | } | 582 | } |
| 595 | #endif | ||
| 596 | 583 | ||
| 597 | int | 584 | int |
| 598 | PEM_write_bio(BIO *bp, const char *name, char *header, unsigned char *data, | 585 | PEM_write_bio(BIO *bp, const char *name, char *header, unsigned char *data, |
| @@ -655,7 +642,6 @@ err: | |||
| 655 | return (0); | 642 | return (0); |
| 656 | } | 643 | } |
| 657 | 644 | ||
| 658 | #ifndef OPENSSL_NO_FP_API | ||
| 659 | int | 645 | int |
| 660 | PEM_read(FILE *fp, char **name, char **header, unsigned char **data, long *len) | 646 | PEM_read(FILE *fp, char **name, char **header, unsigned char **data, long *len) |
| 661 | { | 647 | { |
| @@ -671,7 +657,6 @@ PEM_read(FILE *fp, char **name, char **header, unsigned char **data, long *len) | |||
| 671 | BIO_free(b); | 657 | BIO_free(b); |
| 672 | return (ret); | 658 | return (ret); |
| 673 | } | 659 | } |
| 674 | #endif | ||
| 675 | 660 | ||
| 676 | int | 661 | int |
| 677 | PEM_read_bio(BIO *bp, char **name, char **header, unsigned char **data, | 662 | PEM_read_bio(BIO *bp, char **name, char **header, unsigned char **data, |
diff --git a/src/lib/libcrypto/pem/pem_pk8.c b/src/lib/libcrypto/pem/pem_pk8.c index 228ecfceaf..2e0a44d4b8 100644 --- a/src/lib/libcrypto/pem/pem_pk8.c +++ b/src/lib/libcrypto/pem/pem_pk8.c | |||
| @@ -190,7 +190,6 @@ d2i_PKCS8PrivateKey_bio(BIO *bp, EVP_PKEY **x, pem_password_cb *cb, void *u) | |||
| 190 | return ret; | 190 | return ret; |
| 191 | } | 191 | } |
| 192 | 192 | ||
| 193 | #ifndef OPENSSL_NO_FP_API | ||
| 194 | 193 | ||
| 195 | int | 194 | int |
| 196 | i2d_PKCS8PrivateKey_fp(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc, | 195 | i2d_PKCS8PrivateKey_fp(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc, |
| @@ -251,7 +250,6 @@ d2i_PKCS8PrivateKey_fp(FILE *fp, EVP_PKEY **x, pem_password_cb *cb, void *u) | |||
| 251 | return ret; | 250 | return ret; |
| 252 | } | 251 | } |
| 253 | 252 | ||
| 254 | #endif | ||
| 255 | 253 | ||
| 256 | IMPLEMENT_PEM_rw(PKCS8, X509_SIG, PEM_STRING_PKCS8, X509_SIG) | 254 | IMPLEMENT_PEM_rw(PKCS8, X509_SIG, PEM_STRING_PKCS8, X509_SIG) |
| 257 | IMPLEMENT_PEM_rw(PKCS8_PRIV_KEY_INFO, PKCS8_PRIV_KEY_INFO, PEM_STRING_PKCS8INF, | 255 | IMPLEMENT_PEM_rw(PKCS8_PRIV_KEY_INFO, PKCS8_PRIV_KEY_INFO, PEM_STRING_PKCS8INF, |
diff --git a/src/lib/libcrypto/pem/pem_pkey.c b/src/lib/libcrypto/pem/pem_pkey.c index bcce39281e..843ade927a 100644 --- a/src/lib/libcrypto/pem/pem_pkey.c +++ b/src/lib/libcrypto/pem/pem_pkey.c | |||
| @@ -217,7 +217,6 @@ PEM_write_bio_Parameters(BIO *bp, EVP_PKEY *x) | |||
| 217 | pem_str, bp, x, NULL, NULL, 0, 0, NULL); | 217 | pem_str, bp, x, NULL, NULL, 0, 0, NULL); |
| 218 | } | 218 | } |
| 219 | 219 | ||
| 220 | #ifndef OPENSSL_NO_FP_API | ||
| 221 | EVP_PKEY * | 220 | EVP_PKEY * |
| 222 | PEM_read_PrivateKey(FILE *fp, EVP_PKEY **x, pem_password_cb *cb, void *u) | 221 | PEM_read_PrivateKey(FILE *fp, EVP_PKEY **x, pem_password_cb *cb, void *u) |
| 223 | { | 222 | { |
| @@ -250,4 +249,3 @@ PEM_write_PrivateKey(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc, | |||
| 250 | return ret; | 249 | return ret; |
| 251 | } | 250 | } |
| 252 | 251 | ||
| 253 | #endif | ||
