diff options
Diffstat (limited to 'src/lib/libcrypto/pem/pem_lib.c')
| -rw-r--r-- | src/lib/libcrypto/pem/pem_lib.c | 15 |
1 files changed, 0 insertions, 15 deletions
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, |
