diff options
| author | beck <> | 2014-05-29 20:21:23 +0000 |
|---|---|---|
| committer | beck <> | 2014-05-29 20:21:23 +0000 |
| commit | f60b3b3365842d8869513a7e36981671cd726939 (patch) | |
| tree | 0085ebdac711a18932d8d8d531d36f82fce2c8bc /src | |
| parent | dc6328fe23d92fbfdbeb94ca011ea0d7a563935f (diff) | |
| download | openbsd-f60b3b3365842d8869513a7e36981671cd726939.tar.gz openbsd-f60b3b3365842d8869513a7e36981671cd726939.tar.bz2 openbsd-f60b3b3365842d8869513a7e36981671cd726939.zip | |
Everything sane has stdio, and FILE *. we don't need ifdefs for this.
ok to firebomb from tedu@
Diffstat (limited to '')
82 files changed, 0 insertions, 338 deletions
diff --git a/src/lib/libcrypto/asn1/a_d2i_fp.c b/src/lib/libcrypto/asn1/a_d2i_fp.c index af7a4bac30..a31dc35649 100644 --- a/src/lib/libcrypto/asn1/a_d2i_fp.c +++ b/src/lib/libcrypto/asn1/a_d2i_fp.c | |||
| @@ -65,7 +65,6 @@ | |||
| 65 | static int asn1_d2i_read_bio(BIO *in, BUF_MEM **pb); | 65 | static int asn1_d2i_read_bio(BIO *in, BUF_MEM **pb); |
| 66 | 66 | ||
| 67 | #ifndef NO_OLD_ASN1 | 67 | #ifndef NO_OLD_ASN1 |
| 68 | #ifndef OPENSSL_NO_FP_API | ||
| 69 | 68 | ||
| 70 | void * | 69 | void * |
| 71 | ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x) | 70 | ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x) |
| @@ -82,7 +81,6 @@ ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x) | |||
| 82 | BIO_free(b); | 81 | BIO_free(b); |
| 83 | return (ret); | 82 | return (ret); |
| 84 | } | 83 | } |
| 85 | #endif | ||
| 86 | 84 | ||
| 87 | void * | 85 | void * |
| 88 | ASN1_d2i_bio(void *(*xnew)(void), d2i_of_void *d2i, BIO *in, void **x) | 86 | ASN1_d2i_bio(void *(*xnew)(void), d2i_of_void *d2i, BIO *in, void **x) |
| @@ -128,7 +126,6 @@ err: | |||
| 128 | return (ret); | 126 | return (ret); |
| 129 | } | 127 | } |
| 130 | 128 | ||
| 131 | #ifndef OPENSSL_NO_FP_API | ||
| 132 | void * | 129 | void * |
| 133 | ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x) | 130 | ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x) |
| 134 | { | 131 | { |
| @@ -144,7 +141,6 @@ ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x) | |||
| 144 | BIO_free(b); | 141 | BIO_free(b); |
| 145 | return (ret); | 142 | return (ret); |
| 146 | } | 143 | } |
| 147 | #endif | ||
| 148 | 144 | ||
| 149 | #define HEADER_SIZE 8 | 145 | #define HEADER_SIZE 8 |
| 150 | static int | 146 | static int |
diff --git a/src/lib/libcrypto/asn1/a_i2d_fp.c b/src/lib/libcrypto/asn1/a_i2d_fp.c index 007e612b4a..b9d066754b 100644 --- a/src/lib/libcrypto/asn1/a_i2d_fp.c +++ b/src/lib/libcrypto/asn1/a_i2d_fp.c | |||
| @@ -63,7 +63,6 @@ | |||
| 63 | 63 | ||
| 64 | #ifndef NO_OLD_ASN1 | 64 | #ifndef NO_OLD_ASN1 |
| 65 | 65 | ||
| 66 | #ifndef OPENSSL_NO_FP_API | ||
| 67 | int | 66 | int |
| 68 | ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x) | 67 | ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x) |
| 69 | { | 68 | { |
| @@ -79,7 +78,6 @@ ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x) | |||
| 79 | BIO_free(b); | 78 | BIO_free(b); |
| 80 | return (ret); | 79 | return (ret); |
| 81 | } | 80 | } |
| 82 | #endif | ||
| 83 | 81 | ||
| 84 | int | 82 | int |
| 85 | ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x) | 83 | ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x) |
| @@ -115,7 +113,6 @@ ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x) | |||
| 115 | 113 | ||
| 116 | #endif | 114 | #endif |
| 117 | 115 | ||
| 118 | #ifndef OPENSSL_NO_FP_API | ||
| 119 | int | 116 | int |
| 120 | ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x) | 117 | ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x) |
| 121 | { | 118 | { |
| @@ -131,7 +128,6 @@ ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x) | |||
| 131 | BIO_free(b); | 128 | BIO_free(b); |
| 132 | return (ret); | 129 | return (ret); |
| 133 | } | 130 | } |
| 134 | #endif | ||
| 135 | 131 | ||
| 136 | int | 132 | int |
| 137 | ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, void *x) | 133 | ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, void *x) |
diff --git a/src/lib/libcrypto/asn1/a_strex.c b/src/lib/libcrypto/asn1/a_strex.c index 684e933c4f..dcdd9d0f14 100644 --- a/src/lib/libcrypto/asn1/a_strex.c +++ b/src/lib/libcrypto/asn1/a_strex.c | |||
| @@ -601,7 +601,6 @@ X509_NAME_print_ex(BIO *out, X509_NAME *nm, int indent, unsigned long flags) | |||
| 601 | return do_name_ex(send_bio_chars, out, nm, indent, flags); | 601 | return do_name_ex(send_bio_chars, out, nm, indent, flags); |
| 602 | } | 602 | } |
| 603 | 603 | ||
| 604 | #ifndef OPENSSL_NO_FP_API | ||
| 605 | int | 604 | int |
| 606 | X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags) | 605 | X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags) |
| 607 | { | 606 | { |
| @@ -617,7 +616,6 @@ X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags) | |||
| 617 | } | 616 | } |
| 618 | return do_name_ex(send_fp_chars, fp, nm, indent, flags); | 617 | return do_name_ex(send_fp_chars, fp, nm, indent, flags); |
| 619 | } | 618 | } |
| 620 | #endif | ||
| 621 | 619 | ||
| 622 | int | 620 | int |
| 623 | ASN1_STRING_print_ex(BIO *out, ASN1_STRING *str, unsigned long flags) | 621 | ASN1_STRING_print_ex(BIO *out, ASN1_STRING *str, unsigned long flags) |
| @@ -625,13 +623,11 @@ ASN1_STRING_print_ex(BIO *out, ASN1_STRING *str, unsigned long flags) | |||
| 625 | return do_print_ex(send_bio_chars, out, flags, str); | 623 | return do_print_ex(send_bio_chars, out, flags, str); |
| 626 | } | 624 | } |
| 627 | 625 | ||
| 628 | #ifndef OPENSSL_NO_FP_API | ||
| 629 | int | 626 | int |
| 630 | ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags) | 627 | ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags) |
| 631 | { | 628 | { |
| 632 | return do_print_ex(send_fp_chars, fp, flags, str); | 629 | return do_print_ex(send_fp_chars, fp, flags, str); |
| 633 | } | 630 | } |
| 634 | #endif | ||
| 635 | 631 | ||
| 636 | /* Utility function: convert any string type to UTF8, returns number of bytes | 632 | /* Utility function: convert any string type to UTF8, returns number of bytes |
| 637 | * in output string or a negative error code | 633 | * in output string or a negative error code |
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h index 6543e5aafe..be417bb7eb 100644 --- a/src/lib/libcrypto/asn1/asn1.h +++ b/src/lib/libcrypto/asn1/asn1.h | |||
| @@ -931,7 +931,6 @@ void *ASN1_item_dup(const ASN1_ITEM *it, void *x); | |||
| 931 | #define M_ASN1_free_of(x, type) \ | 931 | #define M_ASN1_free_of(x, type) \ |
| 932 | ASN1_item_free(CHECKED_PTR_OF(type, x), ASN1_ITEM_rptr(type)) | 932 | ASN1_item_free(CHECKED_PTR_OF(type, x), ASN1_ITEM_rptr(type)) |
| 933 | 933 | ||
| 934 | #ifndef OPENSSL_NO_FP_API | ||
| 935 | void *ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x); | 934 | void *ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x); |
| 936 | 935 | ||
| 937 | #define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \ | 936 | #define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \ |
| @@ -955,7 +954,6 @@ int ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x); | |||
| 955 | 954 | ||
| 956 | int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x); | 955 | int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x); |
| 957 | int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags); | 956 | int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags); |
| 958 | #endif | ||
| 959 | 957 | ||
| 960 | int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in); | 958 | int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in); |
| 961 | 959 | ||
diff --git a/src/lib/libcrypto/asn1/t_crl.c b/src/lib/libcrypto/asn1/t_crl.c index cd1ed26174..ab4a8c60d2 100644 --- a/src/lib/libcrypto/asn1/t_crl.c +++ b/src/lib/libcrypto/asn1/t_crl.c | |||
| @@ -64,7 +64,6 @@ | |||
| 64 | #include <openssl/x509.h> | 64 | #include <openssl/x509.h> |
| 65 | #include <openssl/x509v3.h> | 65 | #include <openssl/x509v3.h> |
| 66 | 66 | ||
| 67 | #ifndef OPENSSL_NO_FP_API | ||
| 68 | int | 67 | int |
| 69 | X509_CRL_print_fp(FILE *fp, X509_CRL *x) | 68 | X509_CRL_print_fp(FILE *fp, X509_CRL *x) |
| 70 | { | 69 | { |
| @@ -80,7 +79,6 @@ X509_CRL_print_fp(FILE *fp, X509_CRL *x) | |||
| 80 | BIO_free(b); | 79 | BIO_free(b); |
| 81 | return (ret); | 80 | return (ret); |
| 82 | } | 81 | } |
| 83 | #endif | ||
| 84 | 82 | ||
| 85 | int | 83 | int |
| 86 | X509_CRL_print(BIO *out, X509_CRL *x) | 84 | X509_CRL_print(BIO *out, X509_CRL *x) |
diff --git a/src/lib/libcrypto/asn1/t_req.c b/src/lib/libcrypto/asn1/t_req.c index 331440bed5..78f06950cc 100644 --- a/src/lib/libcrypto/asn1/t_req.c +++ b/src/lib/libcrypto/asn1/t_req.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 | int | 73 | int |
| 75 | X509_REQ_print_fp(FILE *fp, X509_REQ *x) | 74 | X509_REQ_print_fp(FILE *fp, X509_REQ *x) |
| 76 | { | 75 | { |
| @@ -86,7 +85,6 @@ X509_REQ_print_fp(FILE *fp, X509_REQ *x) | |||
| 86 | BIO_free(b); | 85 | BIO_free(b); |
| 87 | return (ret); | 86 | return (ret); |
| 88 | } | 87 | } |
| 89 | #endif | ||
| 90 | 88 | ||
| 91 | int | 89 | int |
| 92 | X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags, | 90 | X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags, |
diff --git a/src/lib/libcrypto/asn1/t_x509.c b/src/lib/libcrypto/asn1/t_x509.c index 81333d67cf..efba93adeb 100644 --- a/src/lib/libcrypto/asn1/t_x509.c +++ b/src/lib/libcrypto/asn1/t_x509.c | |||
| @@ -74,7 +74,6 @@ | |||
| 74 | #include <openssl/x509v3.h> | 74 | #include <openssl/x509v3.h> |
| 75 | #include "asn1_locl.h" | 75 | #include "asn1_locl.h" |
| 76 | 76 | ||
| 77 | #ifndef OPENSSL_NO_FP_API | ||
| 78 | int | 77 | int |
| 79 | X509_print_fp(FILE *fp, X509 *x) | 78 | X509_print_fp(FILE *fp, X509 *x) |
| 80 | { | 79 | { |
| @@ -96,7 +95,6 @@ X509_print_ex_fp(FILE *fp, X509 *x, unsigned long nmflag, unsigned long cflag) | |||
| 96 | BIO_free(b); | 95 | BIO_free(b); |
| 97 | return (ret); | 96 | return (ret); |
| 98 | } | 97 | } |
| 99 | #endif | ||
| 100 | 98 | ||
| 101 | int | 99 | int |
| 102 | X509_print(BIO *bp, X509 *x) | 100 | X509_print(BIO *bp, X509 *x) |
diff --git a/src/lib/libcrypto/bio/b_dump.c b/src/lib/libcrypto/bio/b_dump.c index 65238299f2..d4750f66be 100644 --- a/src/lib/libcrypto/bio/b_dump.c +++ b/src/lib/libcrypto/bio/b_dump.c | |||
| @@ -147,7 +147,6 @@ BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u), | |||
| 147 | return (ret); | 147 | return (ret); |
| 148 | } | 148 | } |
| 149 | 149 | ||
| 150 | #ifndef OPENSSL_NO_FP_API | ||
| 151 | static int | 150 | static int |
| 152 | write_fp(const void *data, size_t len, void *fp) | 151 | write_fp(const void *data, size_t len, void *fp) |
| 153 | { | 152 | { |
| @@ -165,7 +164,6 @@ BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent) | |||
| 165 | { | 164 | { |
| 166 | return BIO_dump_indent_cb(write_fp, fp, s, len, indent); | 165 | return BIO_dump_indent_cb(write_fp, fp, s, len, indent); |
| 167 | } | 166 | } |
| 168 | #endif | ||
| 169 | 167 | ||
| 170 | static int | 168 | static int |
| 171 | write_bio(const void *data, size_t len, void *bp) | 169 | write_bio(const void *data, size_t len, void *bp) |
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h index 67574d9fa4..6809b70e9d 100644 --- a/src/lib/libcrypto/bio/bio.h +++ b/src/lib/libcrypto/bio/bio.h | |||
| @@ -61,9 +61,7 @@ | |||
| 61 | 61 | ||
| 62 | #include <openssl/opensslconf.h> | 62 | #include <openssl/opensslconf.h> |
| 63 | 63 | ||
| 64 | #ifndef OPENSSL_NO_FP_API | ||
| 65 | # include <stdio.h> | 64 | # include <stdio.h> |
| 66 | #endif | ||
| 67 | #include <stdarg.h> | 65 | #include <stdarg.h> |
| 68 | 66 | ||
| 69 | #include <openssl/crypto.h> | 67 | #include <openssl/crypto.h> |
| @@ -619,12 +617,10 @@ int | |||
| 619 | BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix, | 617 | BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix, |
| 620 | asn1_ps_func **psuffix_free); | 618 | asn1_ps_func **psuffix_free); |
| 621 | 619 | ||
| 622 | # ifndef OPENSSL_NO_FP_API | ||
| 623 | BIO_METHOD *BIO_s_file(void ); | 620 | BIO_METHOD *BIO_s_file(void ); |
| 624 | BIO *BIO_new_file(const char *filename, const char *mode); | 621 | BIO *BIO_new_file(const char *filename, const char *mode); |
| 625 | BIO *BIO_new_fp(FILE *stream, int close_flag); | 622 | BIO *BIO_new_fp(FILE *stream, int close_flag); |
| 626 | # define BIO_s_file_internal BIO_s_file | 623 | # define BIO_s_file_internal BIO_s_file |
| 627 | # endif | ||
| 628 | BIO * BIO_new(BIO_METHOD *type); | 624 | BIO * BIO_new(BIO_METHOD *type); |
| 629 | int BIO_set(BIO *a, BIO_METHOD *type); | 625 | int BIO_set(BIO *a, BIO_METHOD *type); |
| 630 | int BIO_free(BIO *a); | 626 | int BIO_free(BIO *a); |
| @@ -694,10 +690,8 @@ BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u), | |||
| 694 | void *u, const char *s, int len, int indent); | 690 | void *u, const char *s, int len, int indent); |
| 695 | int BIO_dump(BIO *b, const char *bytes, int len); | 691 | int BIO_dump(BIO *b, const char *bytes, int len); |
| 696 | int BIO_dump_indent(BIO *b, const char *bytes, int len, int indent); | 692 | int BIO_dump_indent(BIO *b, const char *bytes, int len, int indent); |
| 697 | #ifndef OPENSSL_NO_FP_API | ||
| 698 | int BIO_dump_fp(FILE *fp, const char *s, int len); | 693 | int BIO_dump_fp(FILE *fp, const char *s, int len); |
| 699 | int BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent); | 694 | int BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent); |
| 700 | #endif | ||
| 701 | struct hostent *BIO_gethostbyname(const char *name); | 695 | struct hostent *BIO_gethostbyname(const char *name); |
| 702 | /* We might want a thread-safe interface too: | 696 | /* We might want a thread-safe interface too: |
| 703 | * struct hostent *BIO_gethostbyname_r(const char *name, | 697 | * struct hostent *BIO_gethostbyname_r(const char *name, |
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h index ce04c4d217..5d2f13877e 100644 --- a/src/lib/libcrypto/bn/bn.h +++ b/src/lib/libcrypto/bn/bn.h | |||
| @@ -127,9 +127,7 @@ | |||
| 127 | 127 | ||
| 128 | #include <openssl/opensslconf.h> | 128 | #include <openssl/opensslconf.h> |
| 129 | 129 | ||
| 130 | #ifndef OPENSSL_NO_FP_API | ||
| 131 | #include <stdio.h> /* FILE */ | 130 | #include <stdio.h> /* FILE */ |
| 132 | #endif | ||
| 133 | #include <openssl/ossl_typ.h> | 131 | #include <openssl/ossl_typ.h> |
| 134 | #include <openssl/crypto.h> | 132 | #include <openssl/crypto.h> |
| 135 | 133 | ||
| @@ -442,9 +440,7 @@ int BN_mod_exp_simple(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, | |||
| 442 | const BIGNUM *m, BN_CTX *ctx); | 440 | const BIGNUM *m, BN_CTX *ctx); |
| 443 | 441 | ||
| 444 | int BN_mask_bits(BIGNUM *a, int n); | 442 | int BN_mask_bits(BIGNUM *a, int n); |
| 445 | #ifndef OPENSSL_NO_FP_API | ||
| 446 | int BN_print_fp(FILE *fp, const BIGNUM *a); | 443 | int BN_print_fp(FILE *fp, const BIGNUM *a); |
| 447 | #endif | ||
| 448 | #ifdef HEADER_BIO_H | 444 | #ifdef HEADER_BIO_H |
| 449 | int BN_print(BIO *fp, const BIGNUM *a); | 445 | int BN_print(BIO *fp, const BIGNUM *a); |
| 450 | #else | 446 | #else |
diff --git a/src/lib/libcrypto/bn/bn_print.c b/src/lib/libcrypto/bn/bn_print.c index c09c64db25..3a0fb25369 100644 --- a/src/lib/libcrypto/bn/bn_print.c +++ b/src/lib/libcrypto/bn/bn_print.c | |||
| @@ -328,7 +328,6 @@ BN_asc2bn(BIGNUM **bn, const char *a) | |||
| 328 | } | 328 | } |
| 329 | 329 | ||
| 330 | #ifndef OPENSSL_NO_BIO | 330 | #ifndef OPENSSL_NO_BIO |
| 331 | #ifndef OPENSSL_NO_FP_API | ||
| 332 | int | 331 | int |
| 333 | BN_print_fp(FILE *fp, const BIGNUM *a) | 332 | BN_print_fp(FILE *fp, const BIGNUM *a) |
| 334 | { | 333 | { |
| @@ -342,7 +341,6 @@ BN_print_fp(FILE *fp, const BIGNUM *a) | |||
| 342 | BIO_free(b); | 341 | BIO_free(b); |
| 343 | return (ret); | 342 | return (ret); |
| 344 | } | 343 | } |
| 345 | #endif | ||
| 346 | 344 | ||
| 347 | int | 345 | int |
| 348 | BN_print(BIO *bp, const BIGNUM *a) | 346 | BN_print(BIO *bp, const BIGNUM *a) |
diff --git a/src/lib/libcrypto/conf/conf.h b/src/lib/libcrypto/conf/conf.h index 00efc12120..c54f87dca2 100644 --- a/src/lib/libcrypto/conf/conf.h +++ b/src/lib/libcrypto/conf/conf.h | |||
| @@ -121,10 +121,8 @@ int CONF_set_default_method(CONF_METHOD *meth); | |||
| 121 | void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash); | 121 | void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash); |
| 122 | LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file, | 122 | LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file, |
| 123 | long *eline); | 123 | long *eline); |
| 124 | #ifndef OPENSSL_NO_FP_API | ||
| 125 | LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, | 124 | LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, |
| 126 | long *eline); | 125 | long *eline); |
| 127 | #endif | ||
| 128 | LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, long *eline); | 126 | LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, long *eline); |
| 129 | STACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf, | 127 | STACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf, |
| 130 | const char *section); | 128 | const char *section); |
| @@ -158,9 +156,7 @@ void NCONF_free(CONF *conf); | |||
| 158 | void NCONF_free_data(CONF *conf); | 156 | void NCONF_free_data(CONF *conf); |
| 159 | 157 | ||
| 160 | int NCONF_load(CONF *conf, const char *file, long *eline); | 158 | int NCONF_load(CONF *conf, const char *file, long *eline); |
| 161 | #ifndef OPENSSL_NO_FP_API | ||
| 162 | int NCONF_load_fp(CONF *conf, FILE *fp, long *eline); | 159 | int NCONF_load_fp(CONF *conf, FILE *fp, long *eline); |
| 163 | #endif | ||
| 164 | int NCONF_load_bio(CONF *conf, BIO *bp, long *eline); | 160 | int NCONF_load_bio(CONF *conf, BIO *bp, long *eline); |
| 165 | STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, const char *section); | 161 | STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, const char *section); |
| 166 | char *NCONF_get_string(const CONF *conf, const char *group, const char *name); | 162 | char *NCONF_get_string(const CONF *conf, const char *group, const char *name); |
diff --git a/src/lib/libcrypto/conf/conf_lib.c b/src/lib/libcrypto/conf/conf_lib.c index 35bdda3d64..164e9bebf8 100644 --- a/src/lib/libcrypto/conf/conf_lib.c +++ b/src/lib/libcrypto/conf/conf_lib.c | |||
| @@ -106,7 +106,6 @@ LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file, | |||
| 106 | return ltmp; | 106 | return ltmp; |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | #ifndef OPENSSL_NO_FP_API | ||
| 110 | LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, | 109 | LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, |
| 111 | long *eline) | 110 | long *eline) |
| 112 | { | 111 | { |
| @@ -121,7 +120,6 @@ LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, | |||
| 121 | BIO_free(btmp); | 120 | BIO_free(btmp); |
| 122 | return ltmp; | 121 | return ltmp; |
| 123 | } | 122 | } |
| 124 | #endif | ||
| 125 | 123 | ||
| 126 | LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, | 124 | LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, |
| 127 | long *eline) | 125 | long *eline) |
| @@ -193,7 +191,6 @@ CONF_free(LHASH_OF(CONF_VALUE) *conf) | |||
| 193 | NCONF_free_data(&ctmp); | 191 | NCONF_free_data(&ctmp); |
| 194 | } | 192 | } |
| 195 | 193 | ||
| 196 | #ifndef OPENSSL_NO_FP_API | ||
| 197 | int | 194 | int |
| 198 | CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out) | 195 | CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out) |
| 199 | { | 196 | { |
| @@ -208,7 +205,6 @@ CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out) | |||
| 208 | BIO_free(btmp); | 205 | BIO_free(btmp); |
| 209 | return ret; | 206 | return ret; |
| 210 | } | 207 | } |
| 211 | #endif | ||
| 212 | 208 | ||
| 213 | int | 209 | int |
| 214 | CONF_dump_bio(LHASH_OF(CONF_VALUE) *conf, BIO *out) | 210 | CONF_dump_bio(LHASH_OF(CONF_VALUE) *conf, BIO *out) |
| @@ -269,7 +265,6 @@ NCONF_load(CONF *conf, const char *file, long *eline) | |||
| 269 | return conf->meth->load(conf, file, eline); | 265 | return conf->meth->load(conf, file, eline); |
| 270 | } | 266 | } |
| 271 | 267 | ||
| 272 | #ifndef OPENSSL_NO_FP_API | ||
| 273 | int | 268 | int |
| 274 | NCONF_load_fp(CONF *conf, FILE *fp, long *eline) | 269 | NCONF_load_fp(CONF *conf, FILE *fp, long *eline) |
| 275 | { | 270 | { |
| @@ -284,7 +279,6 @@ NCONF_load_fp(CONF *conf, FILE *fp, long *eline) | |||
| 284 | BIO_free(btmp); | 279 | BIO_free(btmp); |
| 285 | return ret; | 280 | return ret; |
| 286 | } | 281 | } |
| 287 | #endif | ||
| 288 | 282 | ||
| 289 | int | 283 | int |
| 290 | NCONF_load_bio(CONF *conf, BIO *bp, long *eline) | 284 | NCONF_load_bio(CONF *conf, BIO *bp, long *eline) |
| @@ -357,7 +351,6 @@ NCONF_get_number_e(const CONF *conf, const char *group, const char *name, | |||
| 357 | return 1; | 351 | return 1; |
| 358 | } | 352 | } |
| 359 | 353 | ||
| 360 | #ifndef OPENSSL_NO_FP_API | ||
| 361 | int | 354 | int |
| 362 | NCONF_dump_fp(const CONF *conf, FILE *out) | 355 | NCONF_dump_fp(const CONF *conf, FILE *out) |
| 363 | { | 356 | { |
| @@ -371,7 +364,6 @@ NCONF_dump_fp(const CONF *conf, FILE *out) | |||
| 371 | BIO_free(btmp); | 364 | BIO_free(btmp); |
| 372 | return ret; | 365 | return ret; |
| 373 | } | 366 | } |
| 374 | #endif | ||
| 375 | 367 | ||
| 376 | int | 368 | int |
| 377 | NCONF_dump_bio(const CONF *conf, BIO *out) | 369 | NCONF_dump_bio(const CONF *conf, BIO *out) |
diff --git a/src/lib/libcrypto/crypto.h b/src/lib/libcrypto/crypto.h index 9307687b27..e3cf3ec7a9 100644 --- a/src/lib/libcrypto/crypto.h +++ b/src/lib/libcrypto/crypto.h | |||
| @@ -121,9 +121,7 @@ | |||
| 121 | 121 | ||
| 122 | #include <openssl/opensslconf.h> | 122 | #include <openssl/opensslconf.h> |
| 123 | 123 | ||
| 124 | #ifndef OPENSSL_NO_FP_API | ||
| 125 | #include <stdio.h> | 124 | #include <stdio.h> |
| 126 | #endif | ||
| 127 | 125 | ||
| 128 | #include <openssl/stack.h> | 126 | #include <openssl/stack.h> |
| 129 | #include <openssl/safestack.h> | 127 | #include <openssl/safestack.h> |
| @@ -516,9 +514,7 @@ void CRYPTO_dbg_set_options(long bits); | |||
| 516 | long CRYPTO_dbg_get_options(void); | 514 | long CRYPTO_dbg_get_options(void); |
| 517 | 515 | ||
| 518 | 516 | ||
| 519 | #ifndef OPENSSL_NO_FP_API | ||
| 520 | void CRYPTO_mem_leaks_fp(FILE *); | 517 | void CRYPTO_mem_leaks_fp(FILE *); |
| 521 | #endif | ||
| 522 | void CRYPTO_mem_leaks(struct bio_st *bio); | 518 | void CRYPTO_mem_leaks(struct bio_st *bio); |
| 523 | /* unsigned long order, char *file, int line, int num_bytes, char *addr */ | 519 | /* unsigned long order, char *file, int line, int num_bytes, char *addr */ |
| 524 | typedef void *CRYPTO_MEM_LEAK_CB(unsigned long, const char *, int, int, void *); | 520 | typedef void *CRYPTO_MEM_LEAK_CB(unsigned long, const char *, int, int, void *); |
diff --git a/src/lib/libcrypto/dh/dh.h b/src/lib/libcrypto/dh/dh.h index 36ca149b73..0d313ea9b4 100644 --- a/src/lib/libcrypto/dh/dh.h +++ b/src/lib/libcrypto/dh/dh.h | |||
| @@ -212,9 +212,7 @@ int DH_generate_key(DH *dh); | |||
| 212 | int DH_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh); | 212 | int DH_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh); |
| 213 | DH * d2i_DHparams(DH **a,const unsigned char **pp, long length); | 213 | DH * d2i_DHparams(DH **a,const unsigned char **pp, long length); |
| 214 | int i2d_DHparams(const DH *a,unsigned char **pp); | 214 | int i2d_DHparams(const DH *a,unsigned char **pp); |
| 215 | #ifndef OPENSSL_NO_FP_API | ||
| 216 | int DHparams_print_fp(FILE *fp, const DH *x); | 215 | int DHparams_print_fp(FILE *fp, const DH *x); |
| 217 | #endif | ||
| 218 | #ifndef OPENSSL_NO_BIO | 216 | #ifndef OPENSSL_NO_BIO |
| 219 | int DHparams_print(BIO *bp, const DH *x); | 217 | int DHparams_print(BIO *bp, const DH *x); |
| 220 | #else | 218 | #else |
diff --git a/src/lib/libcrypto/dh/dh_prn.c b/src/lib/libcrypto/dh/dh_prn.c index ae58c2ac87..9745798628 100644 --- a/src/lib/libcrypto/dh/dh_prn.c +++ b/src/lib/libcrypto/dh/dh_prn.c | |||
| @@ -61,7 +61,6 @@ | |||
| 61 | #include <openssl/evp.h> | 61 | #include <openssl/evp.h> |
| 62 | #include <openssl/dh.h> | 62 | #include <openssl/dh.h> |
| 63 | 63 | ||
| 64 | #ifndef OPENSSL_NO_FP_API | ||
| 65 | int DHparams_print_fp(FILE *fp, const DH *x) | 64 | int DHparams_print_fp(FILE *fp, const DH *x) |
| 66 | { | 65 | { |
| 67 | BIO *b; | 66 | BIO *b; |
| @@ -77,4 +76,3 @@ int DHparams_print_fp(FILE *fp, const DH *x) | |||
| 77 | BIO_free(b); | 76 | BIO_free(b); |
| 78 | return(ret); | 77 | return(ret); |
| 79 | } | 78 | } |
| 80 | #endif | ||
diff --git a/src/lib/libcrypto/dsa/dsa.h b/src/lib/libcrypto/dsa/dsa.h index c871499201..48f7f8196e 100644 --- a/src/lib/libcrypto/dsa/dsa.h +++ b/src/lib/libcrypto/dsa/dsa.h | |||
| @@ -247,10 +247,8 @@ int i2d_DSAparams(const DSA *a,unsigned char **pp); | |||
| 247 | int DSAparams_print(BIO *bp, const DSA *x); | 247 | int DSAparams_print(BIO *bp, const DSA *x); |
| 248 | int DSA_print(BIO *bp, const DSA *x, int off); | 248 | int DSA_print(BIO *bp, const DSA *x, int off); |
| 249 | #endif | 249 | #endif |
| 250 | #ifndef OPENSSL_NO_FP_API | ||
| 251 | int DSAparams_print_fp(FILE *fp, const DSA *x); | 250 | int DSAparams_print_fp(FILE *fp, const DSA *x); |
| 252 | int DSA_print_fp(FILE *bp, const DSA *x, int off); | 251 | int DSA_print_fp(FILE *bp, const DSA *x, int off); |
| 253 | #endif | ||
| 254 | 252 | ||
| 255 | #define DSS_prime_checks 50 | 253 | #define DSS_prime_checks 50 |
| 256 | /* Primality test according to FIPS PUB 186[-1], Appendix 2.1: | 254 | /* Primality test according to FIPS PUB 186[-1], Appendix 2.1: |
diff --git a/src/lib/libcrypto/dsa/dsa_prn.c b/src/lib/libcrypto/dsa/dsa_prn.c index 6f29f5e240..638f541975 100644 --- a/src/lib/libcrypto/dsa/dsa_prn.c +++ b/src/lib/libcrypto/dsa/dsa_prn.c | |||
| @@ -61,7 +61,6 @@ | |||
| 61 | #include <openssl/evp.h> | 61 | #include <openssl/evp.h> |
| 62 | #include <openssl/dsa.h> | 62 | #include <openssl/dsa.h> |
| 63 | 63 | ||
| 64 | #ifndef OPENSSL_NO_FP_API | ||
| 65 | int DSA_print_fp(FILE *fp, const DSA *x, int off) | 64 | int DSA_print_fp(FILE *fp, const DSA *x, int off) |
| 66 | { | 65 | { |
| 67 | BIO *b; | 66 | BIO *b; |
| @@ -93,7 +92,6 @@ int DSAparams_print_fp(FILE *fp, const DSA *x) | |||
| 93 | BIO_free(b); | 92 | BIO_free(b); |
| 94 | return(ret); | 93 | return(ret); |
| 95 | } | 94 | } |
| 96 | #endif | ||
| 97 | 95 | ||
| 98 | int DSA_print(BIO *bp, const DSA *x, int off) | 96 | int DSA_print(BIO *bp, const DSA *x, int off) |
| 99 | { | 97 | { |
diff --git a/src/lib/libcrypto/ec/ec.h b/src/lib/libcrypto/ec/ec.h index 86f8c6820d..1e0b929304 100644 --- a/src/lib/libcrypto/ec/ec.h +++ b/src/lib/libcrypto/ec/ec.h | |||
| @@ -695,9 +695,7 @@ int i2d_ECPKParameters(const EC_GROUP *, unsigned char **out); | |||
| 695 | #ifndef OPENSSL_NO_BIO | 695 | #ifndef OPENSSL_NO_BIO |
| 696 | int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off); | 696 | int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off); |
| 697 | #endif | 697 | #endif |
| 698 | #ifndef OPENSSL_NO_FP_API | ||
| 699 | int ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off); | 698 | int ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off); |
| 700 | #endif | ||
| 701 | 699 | ||
| 702 | 700 | ||
| 703 | /********************************************************************/ | 701 | /********************************************************************/ |
| @@ -930,7 +928,6 @@ int ECParameters_print(BIO *bp, const EC_KEY *key); | |||
| 930 | int EC_KEY_print(BIO *bp, const EC_KEY *key, int off); | 928 | int EC_KEY_print(BIO *bp, const EC_KEY *key, int off); |
| 931 | 929 | ||
| 932 | #endif | 930 | #endif |
| 933 | #ifndef OPENSSL_NO_FP_API | ||
| 934 | /** Prints out the ec parameters on human readable form. | 931 | /** Prints out the ec parameters on human readable form. |
| 935 | * \param fp file descriptor to which the information is printed | 932 | * \param fp file descriptor to which the information is printed |
| 936 | * \param key EC_KEY object | 933 | * \param key EC_KEY object |
| @@ -946,7 +943,6 @@ int ECParameters_print_fp(FILE *fp, const EC_KEY *key); | |||
| 946 | */ | 943 | */ |
| 947 | int EC_KEY_print_fp(FILE *fp, const EC_KEY *key, int off); | 944 | int EC_KEY_print_fp(FILE *fp, const EC_KEY *key, int off); |
| 948 | 945 | ||
| 949 | #endif | ||
| 950 | 946 | ||
| 951 | #define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x) | 947 | #define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x) |
| 952 | 948 | ||
diff --git a/src/lib/libcrypto/ec/eck_prn.c b/src/lib/libcrypto/ec/eck_prn.c index 86107d5142..3f2973e5b6 100644 --- a/src/lib/libcrypto/ec/eck_prn.c +++ b/src/lib/libcrypto/ec/eck_prn.c | |||
| @@ -67,7 +67,6 @@ | |||
| 67 | #include <openssl/ec.h> | 67 | #include <openssl/ec.h> |
| 68 | #include <openssl/bn.h> | 68 | #include <openssl/bn.h> |
| 69 | 69 | ||
| 70 | #ifndef OPENSSL_NO_FP_API | ||
| 71 | int | 70 | int |
| 72 | ECPKParameters_print_fp(FILE * fp, const EC_GROUP * x, int off) | 71 | ECPKParameters_print_fp(FILE * fp, const EC_GROUP * x, int off) |
| 73 | { | 72 | { |
| @@ -115,7 +114,6 @@ ECParameters_print_fp(FILE * fp, const EC_KEY * x) | |||
| 115 | BIO_free(b); | 114 | BIO_free(b); |
| 116 | return (ret); | 115 | return (ret); |
| 117 | } | 116 | } |
| 118 | #endif | ||
| 119 | 117 | ||
| 120 | int | 118 | int |
| 121 | EC_KEY_print(BIO * bp, const EC_KEY * x, int off) | 119 | EC_KEY_print(BIO * bp, const EC_KEY * x, int off) |
diff --git a/src/lib/libcrypto/err/err.h b/src/lib/libcrypto/err/err.h index 601f56a624..0396aba726 100644 --- a/src/lib/libcrypto/err/err.h +++ b/src/lib/libcrypto/err/err.h | |||
| @@ -114,10 +114,8 @@ | |||
| 114 | 114 | ||
| 115 | #include <openssl/opensslconf.h> | 115 | #include <openssl/opensslconf.h> |
| 116 | 116 | ||
| 117 | #ifndef OPENSSL_NO_FP_API | ||
| 118 | #include <stdio.h> | 117 | #include <stdio.h> |
| 119 | #include <stdlib.h> | 118 | #include <stdlib.h> |
| 120 | #endif | ||
| 121 | 119 | ||
| 122 | #include <openssl/ossl_typ.h> | 120 | #include <openssl/ossl_typ.h> |
| 123 | #ifndef OPENSSL_NO_BIO | 121 | #ifndef OPENSSL_NO_BIO |
| @@ -337,9 +335,7 @@ const char *ERR_func_error_string(unsigned long e); | |||
| 337 | const char *ERR_reason_error_string(unsigned long e); | 335 | const char *ERR_reason_error_string(unsigned long e); |
| 338 | void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u), | 336 | void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u), |
| 339 | void *u); | 337 | void *u); |
| 340 | #ifndef OPENSSL_NO_FP_API | ||
| 341 | void ERR_print_errors_fp(FILE *fp); | 338 | void ERR_print_errors_fp(FILE *fp); |
| 342 | #endif | ||
| 343 | #ifndef OPENSSL_NO_BIO | 339 | #ifndef OPENSSL_NO_BIO |
| 344 | void ERR_print_errors(BIO *bp); | 340 | void ERR_print_errors(BIO *bp); |
| 345 | #endif | 341 | #endif |
diff --git a/src/lib/libcrypto/err/err_prn.c b/src/lib/libcrypto/err/err_prn.c index d6b488fee9..7790287a3f 100644 --- a/src/lib/libcrypto/err/err_prn.c +++ b/src/lib/libcrypto/err/err_prn.c | |||
| @@ -86,7 +86,6 @@ ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u), void *u) | |||
| 86 | } | 86 | } |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | #ifndef OPENSSL_NO_FP_API | ||
| 90 | static int | 89 | static int |
| 91 | print_fp(const char *str, size_t len, void *fp) | 90 | print_fp(const char *str, size_t len, void *fp) |
| 92 | { | 91 | { |
| @@ -103,7 +102,6 @@ ERR_print_errors_fp(FILE *fp) | |||
| 103 | { | 102 | { |
| 104 | ERR_print_errors_cb(print_fp, fp); | 103 | ERR_print_errors_cb(print_fp, fp); |
| 105 | } | 104 | } |
| 106 | #endif | ||
| 107 | 105 | ||
| 108 | static int | 106 | static int |
| 109 | print_bio(const char *str, size_t len, void *bp) | 107 | print_bio(const char *str, size_t len, void *bp) |
diff --git a/src/lib/libcrypto/lhash/lh_stats.c b/src/lib/libcrypto/lhash/lh_stats.c index 34c7d77cb1..4676d9810d 100644 --- a/src/lib/libcrypto/lhash/lh_stats.c +++ b/src/lib/libcrypto/lhash/lh_stats.c | |||
| @@ -140,7 +140,6 @@ lh_node_usage_stats(LHASH *lh, FILE *out) | |||
| 140 | 140 | ||
| 141 | #else | 141 | #else |
| 142 | 142 | ||
| 143 | #ifndef OPENSSL_NO_FP_API | ||
| 144 | void | 143 | void |
| 145 | lh_stats(const _LHASH *lh, FILE *fp) | 144 | lh_stats(const _LHASH *lh, FILE *fp) |
| 146 | { | 145 | { |
| @@ -183,7 +182,6 @@ lh_node_usage_stats(const _LHASH *lh, FILE *fp) | |||
| 183 | end:; | 182 | end:; |
| 184 | } | 183 | } |
| 185 | 184 | ||
| 186 | #endif | ||
| 187 | 185 | ||
| 188 | void | 186 | void |
| 189 | lh_stats_bio(const _LHASH *lh, BIO *out) | 187 | lh_stats_bio(const _LHASH *lh, BIO *out) |
diff --git a/src/lib/libcrypto/lhash/lhash.h b/src/lib/libcrypto/lhash/lhash.h index 187a284243..8147417cd8 100644 --- a/src/lib/libcrypto/lhash/lhash.h +++ b/src/lib/libcrypto/lhash/lhash.h | |||
| @@ -65,9 +65,7 @@ | |||
| 65 | 65 | ||
| 66 | #include <openssl/opensslconf.h> | 66 | #include <openssl/opensslconf.h> |
| 67 | 67 | ||
| 68 | #ifndef OPENSSL_NO_FP_API | ||
| 69 | #include <stdio.h> | 68 | #include <stdio.h> |
| 70 | #endif | ||
| 71 | 69 | ||
| 72 | #ifndef OPENSSL_NO_BIO | 70 | #ifndef OPENSSL_NO_BIO |
| 73 | #include <openssl/bio.h> | 71 | #include <openssl/bio.h> |
| @@ -181,11 +179,9 @@ void lh_doall_arg(_LHASH *lh, LHASH_DOALL_ARG_FN_TYPE func, void *arg); | |||
| 181 | unsigned long lh_strhash(const char *c); | 179 | unsigned long lh_strhash(const char *c); |
| 182 | unsigned long lh_num_items(const _LHASH *lh); | 180 | unsigned long lh_num_items(const _LHASH *lh); |
| 183 | 181 | ||
| 184 | #ifndef OPENSSL_NO_FP_API | ||
| 185 | void lh_stats(const _LHASH *lh, FILE *out); | 182 | void lh_stats(const _LHASH *lh, FILE *out); |
| 186 | void lh_node_stats(const _LHASH *lh, FILE *out); | 183 | void lh_node_stats(const _LHASH *lh, FILE *out); |
| 187 | void lh_node_usage_stats(const _LHASH *lh, FILE *out); | 184 | void lh_node_usage_stats(const _LHASH *lh, FILE *out); |
| 188 | #endif | ||
| 189 | 185 | ||
| 190 | #ifndef OPENSSL_NO_BIO | 186 | #ifndef OPENSSL_NO_BIO |
| 191 | void lh_stats_bio(const _LHASH *lh, BIO *out); | 187 | void lh_stats_bio(const _LHASH *lh, BIO *out); |
diff --git a/src/lib/libcrypto/mem_dbg.c b/src/lib/libcrypto/mem_dbg.c index 4337c52774..288ee907c3 100644 --- a/src/lib/libcrypto/mem_dbg.c +++ b/src/lib/libcrypto/mem_dbg.c | |||
| @@ -187,13 +187,11 @@ CRYPTO_mem_leaks(BIO *b) | |||
| 187 | return; | 187 | return; |
| 188 | } | 188 | } |
| 189 | 189 | ||
| 190 | #ifndef OPENSSL_NO_FP_API | ||
| 191 | void | 190 | void |
| 192 | CRYPTO_mem_leaks_fp(FILE *fp) | 191 | CRYPTO_mem_leaks_fp(FILE *fp) |
| 193 | { | 192 | { |
| 194 | return; | 193 | return; |
| 195 | } | 194 | } |
| 196 | #endif | ||
| 197 | 195 | ||
| 198 | 196 | ||
| 199 | void | 197 | void |
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 | ||
diff --git a/src/lib/libcrypto/pkcs12/p12_utl.c b/src/lib/libcrypto/pkcs12/p12_utl.c index 9c58036169..ec3dcb84fd 100644 --- a/src/lib/libcrypto/pkcs12/p12_utl.c +++ b/src/lib/libcrypto/pkcs12/p12_utl.c | |||
| @@ -100,23 +100,19 @@ int i2d_PKCS12_bio(BIO *bp, PKCS12 *p12) | |||
| 100 | return ASN1_item_i2d_bio(ASN1_ITEM_rptr(PKCS12), bp, p12); | 100 | return ASN1_item_i2d_bio(ASN1_ITEM_rptr(PKCS12), bp, p12); |
| 101 | } | 101 | } |
| 102 | 102 | ||
| 103 | #ifndef OPENSSL_NO_FP_API | ||
| 104 | int i2d_PKCS12_fp(FILE *fp, PKCS12 *p12) | 103 | int i2d_PKCS12_fp(FILE *fp, PKCS12 *p12) |
| 105 | { | 104 | { |
| 106 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(PKCS12), fp, p12); | 105 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(PKCS12), fp, p12); |
| 107 | } | 106 | } |
| 108 | #endif | ||
| 109 | 107 | ||
| 110 | PKCS12 *d2i_PKCS12_bio(BIO *bp, PKCS12 **p12) | 108 | PKCS12 *d2i_PKCS12_bio(BIO *bp, PKCS12 **p12) |
| 111 | { | 109 | { |
| 112 | return ASN1_item_d2i_bio(ASN1_ITEM_rptr(PKCS12), bp, p12); | 110 | return ASN1_item_d2i_bio(ASN1_ITEM_rptr(PKCS12), bp, p12); |
| 113 | } | 111 | } |
| 114 | #ifndef OPENSSL_NO_FP_API | ||
| 115 | PKCS12 *d2i_PKCS12_fp(FILE *fp, PKCS12 **p12) | 112 | PKCS12 *d2i_PKCS12_fp(FILE *fp, PKCS12 **p12) |
| 116 | { | 113 | { |
| 117 | return ASN1_item_d2i_fp(ASN1_ITEM_rptr(PKCS12), fp, p12); | 114 | return ASN1_item_d2i_fp(ASN1_ITEM_rptr(PKCS12), fp, p12); |
| 118 | } | 115 | } |
| 119 | #endif | ||
| 120 | 116 | ||
| 121 | PKCS12_SAFEBAG *PKCS12_x5092certbag(X509 *x509) | 117 | PKCS12_SAFEBAG *PKCS12_x5092certbag(X509 *x509) |
| 122 | { | 118 | { |
diff --git a/src/lib/libcrypto/pkcs7/pkcs7.h b/src/lib/libcrypto/pkcs7/pkcs7.h index a1220aba00..fa4a19dab0 100644 --- a/src/lib/libcrypto/pkcs7/pkcs7.h +++ b/src/lib/libcrypto/pkcs7/pkcs7.h | |||
| @@ -273,10 +273,8 @@ DECLARE_ASN1_FUNCTIONS(PKCS7_ISSUER_AND_SERIAL) | |||
| 273 | 273 | ||
| 274 | int PKCS7_ISSUER_AND_SERIAL_digest(PKCS7_ISSUER_AND_SERIAL *data,const EVP_MD *type, | 274 | int PKCS7_ISSUER_AND_SERIAL_digest(PKCS7_ISSUER_AND_SERIAL *data,const EVP_MD *type, |
| 275 | unsigned char *md,unsigned int *len); | 275 | unsigned char *md,unsigned int *len); |
| 276 | #ifndef OPENSSL_NO_FP_API | ||
| 277 | PKCS7 *d2i_PKCS7_fp(FILE *fp,PKCS7 **p7); | 276 | PKCS7 *d2i_PKCS7_fp(FILE *fp,PKCS7 **p7); |
| 278 | int i2d_PKCS7_fp(FILE *fp,PKCS7 *p7); | 277 | int i2d_PKCS7_fp(FILE *fp,PKCS7 *p7); |
| 279 | #endif | ||
| 280 | PKCS7 *PKCS7_dup(PKCS7 *p7); | 278 | PKCS7 *PKCS7_dup(PKCS7 *p7); |
| 281 | PKCS7 *d2i_PKCS7_bio(BIO *bp,PKCS7 **p7); | 279 | PKCS7 *d2i_PKCS7_bio(BIO *bp,PKCS7 **p7); |
| 282 | int i2d_PKCS7_bio(BIO *bp,PKCS7 *p7); | 280 | int i2d_PKCS7_bio(BIO *bp,PKCS7 *p7); |
diff --git a/src/lib/libcrypto/rsa/rsa.h b/src/lib/libcrypto/rsa/rsa.h index 5f269e577a..2b78d58bb6 100644 --- a/src/lib/libcrypto/rsa/rsa.h +++ b/src/lib/libcrypto/rsa/rsa.h | |||
| @@ -333,9 +333,7 @@ typedef struct rsa_pss_params_st | |||
| 333 | 333 | ||
| 334 | DECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS) | 334 | DECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS) |
| 335 | 335 | ||
| 336 | #ifndef OPENSSL_NO_FP_API | ||
| 337 | int RSA_print_fp(FILE *fp, const RSA *r,int offset); | 336 | int RSA_print_fp(FILE *fp, const RSA *r,int offset); |
| 338 | #endif | ||
| 339 | 337 | ||
| 340 | #ifndef OPENSSL_NO_BIO | 338 | #ifndef OPENSSL_NO_BIO |
| 341 | int RSA_print(BIO *bp, const RSA *r,int offset); | 339 | int RSA_print(BIO *bp, const RSA *r,int offset); |
diff --git a/src/lib/libcrypto/rsa/rsa_prn.c b/src/lib/libcrypto/rsa/rsa_prn.c index 224db0fae5..c0e75065f0 100644 --- a/src/lib/libcrypto/rsa/rsa_prn.c +++ b/src/lib/libcrypto/rsa/rsa_prn.c | |||
| @@ -61,7 +61,6 @@ | |||
| 61 | #include <openssl/rsa.h> | 61 | #include <openssl/rsa.h> |
| 62 | #include <openssl/evp.h> | 62 | #include <openssl/evp.h> |
| 63 | 63 | ||
| 64 | #ifndef OPENSSL_NO_FP_API | ||
| 65 | int RSA_print_fp(FILE *fp, const RSA *x, int off) | 64 | int RSA_print_fp(FILE *fp, const RSA *x, int off) |
| 66 | { | 65 | { |
| 67 | BIO *b; | 66 | BIO *b; |
| @@ -77,7 +76,6 @@ int RSA_print_fp(FILE *fp, const RSA *x, int off) | |||
| 77 | BIO_free(b); | 76 | BIO_free(b); |
| 78 | return(ret); | 77 | return(ret); |
| 79 | } | 78 | } |
| 80 | #endif | ||
| 81 | 79 | ||
| 82 | int RSA_print(BIO *bp, const RSA *x, int off) | 80 | int RSA_print(BIO *bp, const RSA *x, int off) |
| 83 | { | 81 | { |
diff --git a/src/lib/libcrypto/ts/ts_asn1.c b/src/lib/libcrypto/ts/ts_asn1.c index 9e16b01f93..b5dc453510 100644 --- a/src/lib/libcrypto/ts/ts_asn1.c +++ b/src/lib/libcrypto/ts/ts_asn1.c | |||
| @@ -82,7 +82,6 @@ i2d_TS_MSG_IMPRINT_bio(BIO *bp, TS_MSG_IMPRINT *a) | |||
| 82 | } | 82 | } |
| 83 | #endif | 83 | #endif |
| 84 | 84 | ||
| 85 | #ifndef OPENSSL_NO_FP_API | ||
| 86 | TS_MSG_IMPRINT * | 85 | TS_MSG_IMPRINT * |
| 87 | d2i_TS_MSG_IMPRINT_fp(FILE *fp, TS_MSG_IMPRINT **a) | 86 | d2i_TS_MSG_IMPRINT_fp(FILE *fp, TS_MSG_IMPRINT **a) |
| 88 | { | 87 | { |
| @@ -95,7 +94,6 @@ i2d_TS_MSG_IMPRINT_fp(FILE *fp, TS_MSG_IMPRINT *a) | |||
| 95 | { | 94 | { |
| 96 | return ASN1_i2d_fp_of_const(TS_MSG_IMPRINT, i2d_TS_MSG_IMPRINT, fp, a); | 95 | return ASN1_i2d_fp_of_const(TS_MSG_IMPRINT, i2d_TS_MSG_IMPRINT, fp, a); |
| 97 | } | 96 | } |
| 98 | #endif | ||
| 99 | 97 | ||
| 100 | ASN1_SEQUENCE(TS_REQ) = { | 98 | ASN1_SEQUENCE(TS_REQ) = { |
| 101 | ASN1_SIMPLE(TS_REQ, version, ASN1_INTEGER), | 99 | ASN1_SIMPLE(TS_REQ, version, ASN1_INTEGER), |
| @@ -123,7 +121,6 @@ i2d_TS_REQ_bio(BIO *bp, TS_REQ *a) | |||
| 123 | } | 121 | } |
| 124 | #endif | 122 | #endif |
| 125 | 123 | ||
| 126 | #ifndef OPENSSL_NO_FP_API | ||
| 127 | TS_REQ * | 124 | TS_REQ * |
| 128 | d2i_TS_REQ_fp(FILE *fp, TS_REQ **a) | 125 | d2i_TS_REQ_fp(FILE *fp, TS_REQ **a) |
| 129 | { | 126 | { |
| @@ -135,7 +132,6 @@ i2d_TS_REQ_fp(FILE *fp, TS_REQ *a) | |||
| 135 | { | 132 | { |
| 136 | return ASN1_i2d_fp_of_const(TS_REQ, i2d_TS_REQ, fp, a); | 133 | return ASN1_i2d_fp_of_const(TS_REQ, i2d_TS_REQ, fp, a); |
| 137 | } | 134 | } |
| 138 | #endif | ||
| 139 | 135 | ||
| 140 | ASN1_SEQUENCE(TS_ACCURACY) = { | 136 | ASN1_SEQUENCE(TS_ACCURACY) = { |
| 141 | ASN1_OPT(TS_ACCURACY, seconds, ASN1_INTEGER), | 137 | ASN1_OPT(TS_ACCURACY, seconds, ASN1_INTEGER), |
| @@ -177,7 +173,6 @@ i2d_TS_TST_INFO_bio(BIO *bp, TS_TST_INFO *a) | |||
| 177 | } | 173 | } |
| 178 | #endif | 174 | #endif |
| 179 | 175 | ||
| 180 | #ifndef OPENSSL_NO_FP_API | ||
| 181 | TS_TST_INFO * | 176 | TS_TST_INFO * |
| 182 | d2i_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO **a) | 177 | d2i_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO **a) |
| 183 | { | 178 | { |
| @@ -190,7 +185,6 @@ i2d_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO *a) | |||
| 190 | { | 185 | { |
| 191 | return ASN1_i2d_fp_of_const(TS_TST_INFO, i2d_TS_TST_INFO, fp, a); | 186 | return ASN1_i2d_fp_of_const(TS_TST_INFO, i2d_TS_TST_INFO, fp, a); |
| 192 | } | 187 | } |
| 193 | #endif | ||
| 194 | 188 | ||
| 195 | ASN1_SEQUENCE(TS_STATUS_INFO) = { | 189 | ASN1_SEQUENCE(TS_STATUS_INFO) = { |
| 196 | ASN1_SIMPLE(TS_STATUS_INFO, status, ASN1_INTEGER), | 190 | ASN1_SIMPLE(TS_STATUS_INFO, status, ASN1_INTEGER), |
| @@ -268,7 +262,6 @@ i2d_TS_RESP_bio(BIO *bp, TS_RESP *a) | |||
| 268 | } | 262 | } |
| 269 | #endif | 263 | #endif |
| 270 | 264 | ||
| 271 | #ifndef OPENSSL_NO_FP_API | ||
| 272 | TS_RESP * | 265 | TS_RESP * |
| 273 | d2i_TS_RESP_fp(FILE *fp, TS_RESP **a) | 266 | d2i_TS_RESP_fp(FILE *fp, TS_RESP **a) |
| 274 | { | 267 | { |
| @@ -280,7 +273,6 @@ i2d_TS_RESP_fp(FILE *fp, TS_RESP *a) | |||
| 280 | { | 273 | { |
| 281 | return ASN1_i2d_fp_of_const(TS_RESP, i2d_TS_RESP, fp, a); | 274 | return ASN1_i2d_fp_of_const(TS_RESP, i2d_TS_RESP, fp, a); |
| 282 | } | 275 | } |
| 283 | #endif | ||
| 284 | 276 | ||
| 285 | ASN1_SEQUENCE(ESS_ISSUER_SERIAL) = { | 277 | ASN1_SEQUENCE(ESS_ISSUER_SERIAL) = { |
| 286 | ASN1_SEQUENCE_OF(ESS_ISSUER_SERIAL, issuer, GENERAL_NAME), | 278 | ASN1_SEQUENCE_OF(ESS_ISSUER_SERIAL, issuer, GENERAL_NAME), |
diff --git a/src/lib/libcrypto/x509/x509.h b/src/lib/libcrypto/x509/x509.h index 6a29e4bd71..9ac1eddb2a 100644 --- a/src/lib/libcrypto/x509/x509.h +++ b/src/lib/libcrypto/x509/x509.h | |||
| @@ -673,7 +673,6 @@ int X509_NAME_digest(const X509_NAME *data,const EVP_MD *type, | |||
| 673 | unsigned char *md, unsigned int *len); | 673 | unsigned char *md, unsigned int *len); |
| 674 | #endif | 674 | #endif |
| 675 | 675 | ||
| 676 | #ifndef OPENSSL_NO_FP_API | ||
| 677 | X509 *d2i_X509_fp(FILE *fp, X509 **x509); | 676 | X509 *d2i_X509_fp(FILE *fp, X509 **x509); |
| 678 | int i2d_X509_fp(FILE *fp,X509 *x509); | 677 | int i2d_X509_fp(FILE *fp,X509 *x509); |
| 679 | X509_CRL *d2i_X509_CRL_fp(FILE *fp,X509_CRL **crl); | 678 | X509_CRL *d2i_X509_CRL_fp(FILE *fp,X509_CRL **crl); |
| @@ -709,7 +708,6 @@ int i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey); | |||
| 709 | EVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a); | 708 | EVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a); |
| 710 | int i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey); | 709 | int i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey); |
| 711 | EVP_PKEY *d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a); | 710 | EVP_PKEY *d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a); |
| 712 | #endif | ||
| 713 | 711 | ||
| 714 | #ifndef OPENSSL_NO_BIO | 712 | #ifndef OPENSSL_NO_BIO |
| 715 | X509 *d2i_X509_bio(BIO *bp,X509 **x509); | 713 | X509 *d2i_X509_bio(BIO *bp,X509 **x509); |
| @@ -965,13 +963,11 @@ unsigned long X509_NAME_hash_old(X509_NAME *x); | |||
| 965 | 963 | ||
| 966 | int X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b); | 964 | int X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b); |
| 967 | int X509_CRL_match(const X509_CRL *a, const X509_CRL *b); | 965 | int X509_CRL_match(const X509_CRL *a, const X509_CRL *b); |
| 968 | #ifndef OPENSSL_NO_FP_API | ||
| 969 | int X509_print_ex_fp(FILE *bp,X509 *x, unsigned long nmflag, unsigned long cflag); | 966 | int X509_print_ex_fp(FILE *bp,X509 *x, unsigned long nmflag, unsigned long cflag); |
| 970 | int X509_print_fp(FILE *bp,X509 *x); | 967 | int X509_print_fp(FILE *bp,X509 *x); |
| 971 | int X509_CRL_print_fp(FILE *bp,X509_CRL *x); | 968 | int X509_CRL_print_fp(FILE *bp,X509_CRL *x); |
| 972 | int X509_REQ_print_fp(FILE *bp,X509_REQ *req); | 969 | int X509_REQ_print_fp(FILE *bp,X509_REQ *req); |
| 973 | int X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags); | 970 | int X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags); |
| 974 | #endif | ||
| 975 | 971 | ||
| 976 | #ifndef OPENSSL_NO_BIO | 972 | #ifndef OPENSSL_NO_BIO |
| 977 | int X509_NAME_print(BIO *bp, X509_NAME *name, int obase); | 973 | int X509_NAME_print(BIO *bp, X509_NAME *name, int obase); |
diff --git a/src/lib/libcrypto/x509/x_all.c b/src/lib/libcrypto/x509/x_all.c index 92f80ca433..95d0777829 100644 --- a/src/lib/libcrypto/x509/x_all.c +++ b/src/lib/libcrypto/x509/x_all.c | |||
| @@ -146,7 +146,6 @@ NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md) | |||
| 146 | x->sig_algor, NULL, x->signature, x->spkac, pkey, md)); | 146 | x->sig_algor, NULL, x->signature, x->spkac, pkey, md)); |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | #ifndef OPENSSL_NO_FP_API | ||
| 150 | X509 * | 149 | X509 * |
| 151 | d2i_X509_fp(FILE *fp, X509 **x509) | 150 | d2i_X509_fp(FILE *fp, X509 **x509) |
| 152 | { | 151 | { |
| @@ -158,7 +157,6 @@ i2d_X509_fp(FILE *fp, X509 *x509) | |||
| 158 | { | 157 | { |
| 159 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509), fp, x509); | 158 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509), fp, x509); |
| 160 | } | 159 | } |
| 161 | #endif | ||
| 162 | 160 | ||
| 163 | X509 * | 161 | X509 * |
| 164 | d2i_X509_bio(BIO *bp, X509 **x509) | 162 | d2i_X509_bio(BIO *bp, X509 **x509) |
| @@ -172,7 +170,6 @@ i2d_X509_bio(BIO *bp, X509 *x509) | |||
| 172 | return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509), bp, x509); | 170 | return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509), bp, x509); |
| 173 | } | 171 | } |
| 174 | 172 | ||
| 175 | #ifndef OPENSSL_NO_FP_API | ||
| 176 | X509_CRL * | 173 | X509_CRL * |
| 177 | d2i_X509_CRL_fp(FILE *fp, X509_CRL **crl) | 174 | d2i_X509_CRL_fp(FILE *fp, X509_CRL **crl) |
| 178 | { | 175 | { |
| @@ -184,7 +181,6 @@ i2d_X509_CRL_fp(FILE *fp, X509_CRL *crl) | |||
| 184 | { | 181 | { |
| 185 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509_CRL), fp, crl); | 182 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509_CRL), fp, crl); |
| 186 | } | 183 | } |
| 187 | #endif | ||
| 188 | 184 | ||
| 189 | X509_CRL * | 185 | X509_CRL * |
| 190 | d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl) | 186 | d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl) |
| @@ -198,7 +194,6 @@ i2d_X509_CRL_bio(BIO *bp, X509_CRL *crl) | |||
| 198 | return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509_CRL), bp, crl); | 194 | return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509_CRL), bp, crl); |
| 199 | } | 195 | } |
| 200 | 196 | ||
| 201 | #ifndef OPENSSL_NO_FP_API | ||
| 202 | PKCS7 * | 197 | PKCS7 * |
| 203 | d2i_PKCS7_fp(FILE *fp, PKCS7 **p7) | 198 | d2i_PKCS7_fp(FILE *fp, PKCS7 **p7) |
| 204 | { | 199 | { |
| @@ -210,7 +205,6 @@ i2d_PKCS7_fp(FILE *fp, PKCS7 *p7) | |||
| 210 | { | 205 | { |
| 211 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(PKCS7), fp, p7); | 206 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(PKCS7), fp, p7); |
| 212 | } | 207 | } |
| 213 | #endif | ||
| 214 | 208 | ||
| 215 | PKCS7 * | 209 | PKCS7 * |
| 216 | d2i_PKCS7_bio(BIO *bp, PKCS7 **p7) | 210 | d2i_PKCS7_bio(BIO *bp, PKCS7 **p7) |
| @@ -224,7 +218,6 @@ i2d_PKCS7_bio(BIO *bp, PKCS7 *p7) | |||
| 224 | return ASN1_item_i2d_bio(ASN1_ITEM_rptr(PKCS7), bp, p7); | 218 | return ASN1_item_i2d_bio(ASN1_ITEM_rptr(PKCS7), bp, p7); |
| 225 | } | 219 | } |
| 226 | 220 | ||
| 227 | #ifndef OPENSSL_NO_FP_API | ||
| 228 | X509_REQ * | 221 | X509_REQ * |
| 229 | d2i_X509_REQ_fp(FILE *fp, X509_REQ **req) | 222 | d2i_X509_REQ_fp(FILE *fp, X509_REQ **req) |
| 230 | { | 223 | { |
| @@ -236,7 +229,6 @@ i2d_X509_REQ_fp(FILE *fp, X509_REQ *req) | |||
| 236 | { | 229 | { |
| 237 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509_REQ), fp, req); | 230 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509_REQ), fp, req); |
| 238 | } | 231 | } |
| 239 | #endif | ||
| 240 | 232 | ||
| 241 | X509_REQ * | 233 | X509_REQ * |
| 242 | d2i_X509_REQ_bio(BIO *bp, X509_REQ **req) | 234 | d2i_X509_REQ_bio(BIO *bp, X509_REQ **req) |
| @@ -252,7 +244,6 @@ i2d_X509_REQ_bio(BIO *bp, X509_REQ *req) | |||
| 252 | 244 | ||
| 253 | #ifndef OPENSSL_NO_RSA | 245 | #ifndef OPENSSL_NO_RSA |
| 254 | 246 | ||
| 255 | #ifndef OPENSSL_NO_FP_API | ||
| 256 | RSA * | 247 | RSA * |
| 257 | d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa) | 248 | d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa) |
| 258 | { | 249 | { |
| @@ -290,7 +281,6 @@ i2d_RSA_PUBKEY_fp(FILE *fp, RSA *rsa) | |||
| 290 | { | 281 | { |
| 291 | return ASN1_i2d_fp((I2D_OF(void))i2d_RSA_PUBKEY, fp, rsa); | 282 | return ASN1_i2d_fp((I2D_OF(void))i2d_RSA_PUBKEY, fp, rsa); |
| 292 | } | 283 | } |
| 293 | #endif | ||
| 294 | 284 | ||
| 295 | RSA * | 285 | RSA * |
| 296 | d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa) | 286 | d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa) |
| @@ -331,7 +321,6 @@ i2d_RSA_PUBKEY_bio(BIO *bp, RSA *rsa) | |||
| 331 | #endif | 321 | #endif |
| 332 | 322 | ||
| 333 | #ifndef OPENSSL_NO_DSA | 323 | #ifndef OPENSSL_NO_DSA |
| 334 | #ifndef OPENSSL_NO_FP_API | ||
| 335 | DSA * | 324 | DSA * |
| 336 | d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa) | 325 | d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa) |
| 337 | { | 326 | { |
| @@ -355,7 +344,6 @@ i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa) | |||
| 355 | { | 344 | { |
| 356 | return ASN1_i2d_fp_of(DSA, i2d_DSA_PUBKEY, fp, dsa); | 345 | return ASN1_i2d_fp_of(DSA, i2d_DSA_PUBKEY, fp, dsa); |
| 357 | } | 346 | } |
| 358 | #endif | ||
| 359 | 347 | ||
| 360 | DSA * | 348 | DSA * |
| 361 | d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa) | 349 | d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa) |
| @@ -384,7 +372,6 @@ i2d_DSA_PUBKEY_bio(BIO *bp, DSA *dsa) | |||
| 384 | #endif | 372 | #endif |
| 385 | 373 | ||
| 386 | #ifndef OPENSSL_NO_EC | 374 | #ifndef OPENSSL_NO_EC |
| 387 | #ifndef OPENSSL_NO_FP_API | ||
| 388 | EC_KEY * | 375 | EC_KEY * |
| 389 | d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey) | 376 | d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey) |
| 390 | { | 377 | { |
| @@ -408,7 +395,6 @@ i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey) | |||
| 408 | { | 395 | { |
| 409 | return ASN1_i2d_fp_of(EC_KEY, i2d_ECPrivateKey, fp, eckey); | 396 | return ASN1_i2d_fp_of(EC_KEY, i2d_ECPrivateKey, fp, eckey); |
| 410 | } | 397 | } |
| 411 | #endif | ||
| 412 | EC_KEY * | 398 | EC_KEY * |
| 413 | d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey) | 399 | d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey) |
| 414 | { | 400 | { |
| @@ -487,7 +473,6 @@ PKCS7_ISSUER_AND_SERIAL_digest(PKCS7_ISSUER_AND_SERIAL *data, | |||
| 487 | } | 473 | } |
| 488 | 474 | ||
| 489 | 475 | ||
| 490 | #ifndef OPENSSL_NO_FP_API | ||
| 491 | X509_SIG * | 476 | X509_SIG * |
| 492 | d2i_PKCS8_fp(FILE *fp, X509_SIG **p8) | 477 | d2i_PKCS8_fp(FILE *fp, X509_SIG **p8) |
| 493 | { | 478 | { |
| @@ -499,7 +484,6 @@ i2d_PKCS8_fp(FILE *fp, X509_SIG *p8) | |||
| 499 | { | 484 | { |
| 500 | return ASN1_i2d_fp_of(X509_SIG, i2d_X509_SIG, fp, p8); | 485 | return ASN1_i2d_fp_of(X509_SIG, i2d_X509_SIG, fp, p8); |
| 501 | } | 486 | } |
| 502 | #endif | ||
| 503 | 487 | ||
| 504 | X509_SIG * | 488 | X509_SIG * |
| 505 | d2i_PKCS8_bio(BIO *bp, X509_SIG **p8) | 489 | d2i_PKCS8_bio(BIO *bp, X509_SIG **p8) |
| @@ -513,7 +497,6 @@ i2d_PKCS8_bio(BIO *bp, X509_SIG *p8) | |||
| 513 | return ASN1_i2d_bio_of(X509_SIG, i2d_X509_SIG, bp, p8); | 497 | return ASN1_i2d_bio_of(X509_SIG, i2d_X509_SIG, bp, p8); |
| 514 | } | 498 | } |
| 515 | 499 | ||
| 516 | #ifndef OPENSSL_NO_FP_API | ||
| 517 | PKCS8_PRIV_KEY_INFO * | 500 | PKCS8_PRIV_KEY_INFO * |
| 518 | d2i_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO **p8inf) | 501 | d2i_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO **p8inf) |
| 519 | { | 502 | { |
| @@ -566,7 +549,6 @@ d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a) | |||
| 566 | return ASN1_d2i_fp_of(EVP_PKEY, EVP_PKEY_new, d2i_PUBKEY, fp, a); | 549 | return ASN1_d2i_fp_of(EVP_PKEY, EVP_PKEY_new, d2i_PUBKEY, fp, a); |
| 567 | } | 550 | } |
| 568 | 551 | ||
| 569 | #endif | ||
| 570 | 552 | ||
| 571 | PKCS8_PRIV_KEY_INFO * | 553 | PKCS8_PRIV_KEY_INFO * |
| 572 | d2i_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, PKCS8_PRIV_KEY_INFO **p8inf) | 554 | d2i_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, PKCS8_PRIV_KEY_INFO **p8inf) |
diff --git a/src/lib/libcrypto/x509v3/v3_prn.c b/src/lib/libcrypto/x509v3/v3_prn.c index 3874ded51c..ff08534f9a 100644 --- a/src/lib/libcrypto/x509v3/v3_prn.c +++ b/src/lib/libcrypto/x509v3/v3_prn.c | |||
| @@ -212,7 +212,6 @@ unknown_ext_print(BIO *out, X509_EXTENSION *ext, unsigned long flag, | |||
| 212 | } | 212 | } |
| 213 | 213 | ||
| 214 | 214 | ||
| 215 | #ifndef OPENSSL_NO_FP_API | ||
| 216 | int | 215 | int |
| 217 | X509V3_EXT_print_fp(FILE *fp, X509_EXTENSION *ext, int flag, int indent) | 216 | X509V3_EXT_print_fp(FILE *fp, X509_EXTENSION *ext, int flag, int indent) |
| 218 | { | 217 | { |
| @@ -225,4 +224,3 @@ X509V3_EXT_print_fp(FILE *fp, X509_EXTENSION *ext, int flag, int indent) | |||
| 225 | BIO_free(bio_tmp); | 224 | BIO_free(bio_tmp); |
| 226 | return ret; | 225 | return ret; |
| 227 | } | 226 | } |
| 228 | #endif | ||
diff --git a/src/lib/libssl/src/crypto/asn1/a_d2i_fp.c b/src/lib/libssl/src/crypto/asn1/a_d2i_fp.c index af7a4bac30..a31dc35649 100644 --- a/src/lib/libssl/src/crypto/asn1/a_d2i_fp.c +++ b/src/lib/libssl/src/crypto/asn1/a_d2i_fp.c | |||
| @@ -65,7 +65,6 @@ | |||
| 65 | static int asn1_d2i_read_bio(BIO *in, BUF_MEM **pb); | 65 | static int asn1_d2i_read_bio(BIO *in, BUF_MEM **pb); |
| 66 | 66 | ||
| 67 | #ifndef NO_OLD_ASN1 | 67 | #ifndef NO_OLD_ASN1 |
| 68 | #ifndef OPENSSL_NO_FP_API | ||
| 69 | 68 | ||
| 70 | void * | 69 | void * |
| 71 | ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x) | 70 | ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x) |
| @@ -82,7 +81,6 @@ ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x) | |||
| 82 | BIO_free(b); | 81 | BIO_free(b); |
| 83 | return (ret); | 82 | return (ret); |
| 84 | } | 83 | } |
| 85 | #endif | ||
| 86 | 84 | ||
| 87 | void * | 85 | void * |
| 88 | ASN1_d2i_bio(void *(*xnew)(void), d2i_of_void *d2i, BIO *in, void **x) | 86 | ASN1_d2i_bio(void *(*xnew)(void), d2i_of_void *d2i, BIO *in, void **x) |
| @@ -128,7 +126,6 @@ err: | |||
| 128 | return (ret); | 126 | return (ret); |
| 129 | } | 127 | } |
| 130 | 128 | ||
| 131 | #ifndef OPENSSL_NO_FP_API | ||
| 132 | void * | 129 | void * |
| 133 | ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x) | 130 | ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x) |
| 134 | { | 131 | { |
| @@ -144,7 +141,6 @@ ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x) | |||
| 144 | BIO_free(b); | 141 | BIO_free(b); |
| 145 | return (ret); | 142 | return (ret); |
| 146 | } | 143 | } |
| 147 | #endif | ||
| 148 | 144 | ||
| 149 | #define HEADER_SIZE 8 | 145 | #define HEADER_SIZE 8 |
| 150 | static int | 146 | static int |
diff --git a/src/lib/libssl/src/crypto/asn1/a_i2d_fp.c b/src/lib/libssl/src/crypto/asn1/a_i2d_fp.c index 007e612b4a..b9d066754b 100644 --- a/src/lib/libssl/src/crypto/asn1/a_i2d_fp.c +++ b/src/lib/libssl/src/crypto/asn1/a_i2d_fp.c | |||
| @@ -63,7 +63,6 @@ | |||
| 63 | 63 | ||
| 64 | #ifndef NO_OLD_ASN1 | 64 | #ifndef NO_OLD_ASN1 |
| 65 | 65 | ||
| 66 | #ifndef OPENSSL_NO_FP_API | ||
| 67 | int | 66 | int |
| 68 | ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x) | 67 | ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x) |
| 69 | { | 68 | { |
| @@ -79,7 +78,6 @@ ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x) | |||
| 79 | BIO_free(b); | 78 | BIO_free(b); |
| 80 | return (ret); | 79 | return (ret); |
| 81 | } | 80 | } |
| 82 | #endif | ||
| 83 | 81 | ||
| 84 | int | 82 | int |
| 85 | ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x) | 83 | ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x) |
| @@ -115,7 +113,6 @@ ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x) | |||
| 115 | 113 | ||
| 116 | #endif | 114 | #endif |
| 117 | 115 | ||
| 118 | #ifndef OPENSSL_NO_FP_API | ||
| 119 | int | 116 | int |
| 120 | ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x) | 117 | ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x) |
| 121 | { | 118 | { |
| @@ -131,7 +128,6 @@ ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x) | |||
| 131 | BIO_free(b); | 128 | BIO_free(b); |
| 132 | return (ret); | 129 | return (ret); |
| 133 | } | 130 | } |
| 134 | #endif | ||
| 135 | 131 | ||
| 136 | int | 132 | int |
| 137 | ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, void *x) | 133 | ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, void *x) |
diff --git a/src/lib/libssl/src/crypto/asn1/a_strex.c b/src/lib/libssl/src/crypto/asn1/a_strex.c index 684e933c4f..dcdd9d0f14 100644 --- a/src/lib/libssl/src/crypto/asn1/a_strex.c +++ b/src/lib/libssl/src/crypto/asn1/a_strex.c | |||
| @@ -601,7 +601,6 @@ X509_NAME_print_ex(BIO *out, X509_NAME *nm, int indent, unsigned long flags) | |||
| 601 | return do_name_ex(send_bio_chars, out, nm, indent, flags); | 601 | return do_name_ex(send_bio_chars, out, nm, indent, flags); |
| 602 | } | 602 | } |
| 603 | 603 | ||
| 604 | #ifndef OPENSSL_NO_FP_API | ||
| 605 | int | 604 | int |
| 606 | X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags) | 605 | X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags) |
| 607 | { | 606 | { |
| @@ -617,7 +616,6 @@ X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags) | |||
| 617 | } | 616 | } |
| 618 | return do_name_ex(send_fp_chars, fp, nm, indent, flags); | 617 | return do_name_ex(send_fp_chars, fp, nm, indent, flags); |
| 619 | } | 618 | } |
| 620 | #endif | ||
| 621 | 619 | ||
| 622 | int | 620 | int |
| 623 | ASN1_STRING_print_ex(BIO *out, ASN1_STRING *str, unsigned long flags) | 621 | ASN1_STRING_print_ex(BIO *out, ASN1_STRING *str, unsigned long flags) |
| @@ -625,13 +623,11 @@ ASN1_STRING_print_ex(BIO *out, ASN1_STRING *str, unsigned long flags) | |||
| 625 | return do_print_ex(send_bio_chars, out, flags, str); | 623 | return do_print_ex(send_bio_chars, out, flags, str); |
| 626 | } | 624 | } |
| 627 | 625 | ||
| 628 | #ifndef OPENSSL_NO_FP_API | ||
| 629 | int | 626 | int |
| 630 | ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags) | 627 | ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags) |
| 631 | { | 628 | { |
| 632 | return do_print_ex(send_fp_chars, fp, flags, str); | 629 | return do_print_ex(send_fp_chars, fp, flags, str); |
| 633 | } | 630 | } |
| 634 | #endif | ||
| 635 | 631 | ||
| 636 | /* Utility function: convert any string type to UTF8, returns number of bytes | 632 | /* Utility function: convert any string type to UTF8, returns number of bytes |
| 637 | * in output string or a negative error code | 633 | * in output string or a negative error code |
diff --git a/src/lib/libssl/src/crypto/asn1/asn1.h b/src/lib/libssl/src/crypto/asn1/asn1.h index 6543e5aafe..be417bb7eb 100644 --- a/src/lib/libssl/src/crypto/asn1/asn1.h +++ b/src/lib/libssl/src/crypto/asn1/asn1.h | |||
| @@ -931,7 +931,6 @@ void *ASN1_item_dup(const ASN1_ITEM *it, void *x); | |||
| 931 | #define M_ASN1_free_of(x, type) \ | 931 | #define M_ASN1_free_of(x, type) \ |
| 932 | ASN1_item_free(CHECKED_PTR_OF(type, x), ASN1_ITEM_rptr(type)) | 932 | ASN1_item_free(CHECKED_PTR_OF(type, x), ASN1_ITEM_rptr(type)) |
| 933 | 933 | ||
| 934 | #ifndef OPENSSL_NO_FP_API | ||
| 935 | void *ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x); | 934 | void *ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x); |
| 936 | 935 | ||
| 937 | #define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \ | 936 | #define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \ |
| @@ -955,7 +954,6 @@ int ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x); | |||
| 955 | 954 | ||
| 956 | int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x); | 955 | int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x); |
| 957 | int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags); | 956 | int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags); |
| 958 | #endif | ||
| 959 | 957 | ||
| 960 | int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in); | 958 | int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in); |
| 961 | 959 | ||
diff --git a/src/lib/libssl/src/crypto/asn1/t_crl.c b/src/lib/libssl/src/crypto/asn1/t_crl.c index cd1ed26174..ab4a8c60d2 100644 --- a/src/lib/libssl/src/crypto/asn1/t_crl.c +++ b/src/lib/libssl/src/crypto/asn1/t_crl.c | |||
| @@ -64,7 +64,6 @@ | |||
| 64 | #include <openssl/x509.h> | 64 | #include <openssl/x509.h> |
| 65 | #include <openssl/x509v3.h> | 65 | #include <openssl/x509v3.h> |
| 66 | 66 | ||
| 67 | #ifndef OPENSSL_NO_FP_API | ||
| 68 | int | 67 | int |
| 69 | X509_CRL_print_fp(FILE *fp, X509_CRL *x) | 68 | X509_CRL_print_fp(FILE *fp, X509_CRL *x) |
| 70 | { | 69 | { |
| @@ -80,7 +79,6 @@ X509_CRL_print_fp(FILE *fp, X509_CRL *x) | |||
| 80 | BIO_free(b); | 79 | BIO_free(b); |
| 81 | return (ret); | 80 | return (ret); |
| 82 | } | 81 | } |
| 83 | #endif | ||
| 84 | 82 | ||
| 85 | int | 83 | int |
| 86 | X509_CRL_print(BIO *out, X509_CRL *x) | 84 | X509_CRL_print(BIO *out, X509_CRL *x) |
diff --git a/src/lib/libssl/src/crypto/asn1/t_req.c b/src/lib/libssl/src/crypto/asn1/t_req.c index 331440bed5..78f06950cc 100644 --- a/src/lib/libssl/src/crypto/asn1/t_req.c +++ b/src/lib/libssl/src/crypto/asn1/t_req.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 | int | 73 | int |
| 75 | X509_REQ_print_fp(FILE *fp, X509_REQ *x) | 74 | X509_REQ_print_fp(FILE *fp, X509_REQ *x) |
| 76 | { | 75 | { |
| @@ -86,7 +85,6 @@ X509_REQ_print_fp(FILE *fp, X509_REQ *x) | |||
| 86 | BIO_free(b); | 85 | BIO_free(b); |
| 87 | return (ret); | 86 | return (ret); |
| 88 | } | 87 | } |
| 89 | #endif | ||
| 90 | 88 | ||
| 91 | int | 89 | int |
| 92 | X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags, | 90 | X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags, |
diff --git a/src/lib/libssl/src/crypto/asn1/t_x509.c b/src/lib/libssl/src/crypto/asn1/t_x509.c index 81333d67cf..efba93adeb 100644 --- a/src/lib/libssl/src/crypto/asn1/t_x509.c +++ b/src/lib/libssl/src/crypto/asn1/t_x509.c | |||
| @@ -74,7 +74,6 @@ | |||
| 74 | #include <openssl/x509v3.h> | 74 | #include <openssl/x509v3.h> |
| 75 | #include "asn1_locl.h" | 75 | #include "asn1_locl.h" |
| 76 | 76 | ||
| 77 | #ifndef OPENSSL_NO_FP_API | ||
| 78 | int | 77 | int |
| 79 | X509_print_fp(FILE *fp, X509 *x) | 78 | X509_print_fp(FILE *fp, X509 *x) |
| 80 | { | 79 | { |
| @@ -96,7 +95,6 @@ X509_print_ex_fp(FILE *fp, X509 *x, unsigned long nmflag, unsigned long cflag) | |||
| 96 | BIO_free(b); | 95 | BIO_free(b); |
| 97 | return (ret); | 96 | return (ret); |
| 98 | } | 97 | } |
| 99 | #endif | ||
| 100 | 98 | ||
| 101 | int | 99 | int |
| 102 | X509_print(BIO *bp, X509 *x) | 100 | X509_print(BIO *bp, X509 *x) |
diff --git a/src/lib/libssl/src/crypto/bio/b_dump.c b/src/lib/libssl/src/crypto/bio/b_dump.c index 65238299f2..d4750f66be 100644 --- a/src/lib/libssl/src/crypto/bio/b_dump.c +++ b/src/lib/libssl/src/crypto/bio/b_dump.c | |||
| @@ -147,7 +147,6 @@ BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u), | |||
| 147 | return (ret); | 147 | return (ret); |
| 148 | } | 148 | } |
| 149 | 149 | ||
| 150 | #ifndef OPENSSL_NO_FP_API | ||
| 151 | static int | 150 | static int |
| 152 | write_fp(const void *data, size_t len, void *fp) | 151 | write_fp(const void *data, size_t len, void *fp) |
| 153 | { | 152 | { |
| @@ -165,7 +164,6 @@ BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent) | |||
| 165 | { | 164 | { |
| 166 | return BIO_dump_indent_cb(write_fp, fp, s, len, indent); | 165 | return BIO_dump_indent_cb(write_fp, fp, s, len, indent); |
| 167 | } | 166 | } |
| 168 | #endif | ||
| 169 | 167 | ||
| 170 | static int | 168 | static int |
| 171 | write_bio(const void *data, size_t len, void *bp) | 169 | write_bio(const void *data, size_t len, void *bp) |
diff --git a/src/lib/libssl/src/crypto/bio/bio.h b/src/lib/libssl/src/crypto/bio/bio.h index 67574d9fa4..6809b70e9d 100644 --- a/src/lib/libssl/src/crypto/bio/bio.h +++ b/src/lib/libssl/src/crypto/bio/bio.h | |||
| @@ -61,9 +61,7 @@ | |||
| 61 | 61 | ||
| 62 | #include <openssl/opensslconf.h> | 62 | #include <openssl/opensslconf.h> |
| 63 | 63 | ||
| 64 | #ifndef OPENSSL_NO_FP_API | ||
| 65 | # include <stdio.h> | 64 | # include <stdio.h> |
| 66 | #endif | ||
| 67 | #include <stdarg.h> | 65 | #include <stdarg.h> |
| 68 | 66 | ||
| 69 | #include <openssl/crypto.h> | 67 | #include <openssl/crypto.h> |
| @@ -619,12 +617,10 @@ int | |||
| 619 | BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix, | 617 | BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix, |
| 620 | asn1_ps_func **psuffix_free); | 618 | asn1_ps_func **psuffix_free); |
| 621 | 619 | ||
| 622 | # ifndef OPENSSL_NO_FP_API | ||
| 623 | BIO_METHOD *BIO_s_file(void ); | 620 | BIO_METHOD *BIO_s_file(void ); |
| 624 | BIO *BIO_new_file(const char *filename, const char *mode); | 621 | BIO *BIO_new_file(const char *filename, const char *mode); |
| 625 | BIO *BIO_new_fp(FILE *stream, int close_flag); | 622 | BIO *BIO_new_fp(FILE *stream, int close_flag); |
| 626 | # define BIO_s_file_internal BIO_s_file | 623 | # define BIO_s_file_internal BIO_s_file |
| 627 | # endif | ||
| 628 | BIO * BIO_new(BIO_METHOD *type); | 624 | BIO * BIO_new(BIO_METHOD *type); |
| 629 | int BIO_set(BIO *a, BIO_METHOD *type); | 625 | int BIO_set(BIO *a, BIO_METHOD *type); |
| 630 | int BIO_free(BIO *a); | 626 | int BIO_free(BIO *a); |
| @@ -694,10 +690,8 @@ BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u), | |||
| 694 | void *u, const char *s, int len, int indent); | 690 | void *u, const char *s, int len, int indent); |
| 695 | int BIO_dump(BIO *b, const char *bytes, int len); | 691 | int BIO_dump(BIO *b, const char *bytes, int len); |
| 696 | int BIO_dump_indent(BIO *b, const char *bytes, int len, int indent); | 692 | int BIO_dump_indent(BIO *b, const char *bytes, int len, int indent); |
| 697 | #ifndef OPENSSL_NO_FP_API | ||
| 698 | int BIO_dump_fp(FILE *fp, const char *s, int len); | 693 | int BIO_dump_fp(FILE *fp, const char *s, int len); |
| 699 | int BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent); | 694 | int BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent); |
| 700 | #endif | ||
| 701 | struct hostent *BIO_gethostbyname(const char *name); | 695 | struct hostent *BIO_gethostbyname(const char *name); |
| 702 | /* We might want a thread-safe interface too: | 696 | /* We might want a thread-safe interface too: |
| 703 | * struct hostent *BIO_gethostbyname_r(const char *name, | 697 | * struct hostent *BIO_gethostbyname_r(const char *name, |
diff --git a/src/lib/libssl/src/crypto/bn/bn.h b/src/lib/libssl/src/crypto/bn/bn.h index ce04c4d217..5d2f13877e 100644 --- a/src/lib/libssl/src/crypto/bn/bn.h +++ b/src/lib/libssl/src/crypto/bn/bn.h | |||
| @@ -127,9 +127,7 @@ | |||
| 127 | 127 | ||
| 128 | #include <openssl/opensslconf.h> | 128 | #include <openssl/opensslconf.h> |
| 129 | 129 | ||
| 130 | #ifndef OPENSSL_NO_FP_API | ||
| 131 | #include <stdio.h> /* FILE */ | 130 | #include <stdio.h> /* FILE */ |
| 132 | #endif | ||
| 133 | #include <openssl/ossl_typ.h> | 131 | #include <openssl/ossl_typ.h> |
| 134 | #include <openssl/crypto.h> | 132 | #include <openssl/crypto.h> |
| 135 | 133 | ||
| @@ -442,9 +440,7 @@ int BN_mod_exp_simple(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, | |||
| 442 | const BIGNUM *m, BN_CTX *ctx); | 440 | const BIGNUM *m, BN_CTX *ctx); |
| 443 | 441 | ||
| 444 | int BN_mask_bits(BIGNUM *a, int n); | 442 | int BN_mask_bits(BIGNUM *a, int n); |
| 445 | #ifndef OPENSSL_NO_FP_API | ||
| 446 | int BN_print_fp(FILE *fp, const BIGNUM *a); | 443 | int BN_print_fp(FILE *fp, const BIGNUM *a); |
| 447 | #endif | ||
| 448 | #ifdef HEADER_BIO_H | 444 | #ifdef HEADER_BIO_H |
| 449 | int BN_print(BIO *fp, const BIGNUM *a); | 445 | int BN_print(BIO *fp, const BIGNUM *a); |
| 450 | #else | 446 | #else |
diff --git a/src/lib/libssl/src/crypto/bn/bn_print.c b/src/lib/libssl/src/crypto/bn/bn_print.c index c09c64db25..3a0fb25369 100644 --- a/src/lib/libssl/src/crypto/bn/bn_print.c +++ b/src/lib/libssl/src/crypto/bn/bn_print.c | |||
| @@ -328,7 +328,6 @@ BN_asc2bn(BIGNUM **bn, const char *a) | |||
| 328 | } | 328 | } |
| 329 | 329 | ||
| 330 | #ifndef OPENSSL_NO_BIO | 330 | #ifndef OPENSSL_NO_BIO |
| 331 | #ifndef OPENSSL_NO_FP_API | ||
| 332 | int | 331 | int |
| 333 | BN_print_fp(FILE *fp, const BIGNUM *a) | 332 | BN_print_fp(FILE *fp, const BIGNUM *a) |
| 334 | { | 333 | { |
| @@ -342,7 +341,6 @@ BN_print_fp(FILE *fp, const BIGNUM *a) | |||
| 342 | BIO_free(b); | 341 | BIO_free(b); |
| 343 | return (ret); | 342 | return (ret); |
| 344 | } | 343 | } |
| 345 | #endif | ||
| 346 | 344 | ||
| 347 | int | 345 | int |
| 348 | BN_print(BIO *bp, const BIGNUM *a) | 346 | BN_print(BIO *bp, const BIGNUM *a) |
diff --git a/src/lib/libssl/src/crypto/conf/conf.h b/src/lib/libssl/src/crypto/conf/conf.h index 00efc12120..c54f87dca2 100644 --- a/src/lib/libssl/src/crypto/conf/conf.h +++ b/src/lib/libssl/src/crypto/conf/conf.h | |||
| @@ -121,10 +121,8 @@ int CONF_set_default_method(CONF_METHOD *meth); | |||
| 121 | void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash); | 121 | void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash); |
| 122 | LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file, | 122 | LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file, |
| 123 | long *eline); | 123 | long *eline); |
| 124 | #ifndef OPENSSL_NO_FP_API | ||
| 125 | LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, | 124 | LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, |
| 126 | long *eline); | 125 | long *eline); |
| 127 | #endif | ||
| 128 | LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, long *eline); | 126 | LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, long *eline); |
| 129 | STACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf, | 127 | STACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf, |
| 130 | const char *section); | 128 | const char *section); |
| @@ -158,9 +156,7 @@ void NCONF_free(CONF *conf); | |||
| 158 | void NCONF_free_data(CONF *conf); | 156 | void NCONF_free_data(CONF *conf); |
| 159 | 157 | ||
| 160 | int NCONF_load(CONF *conf, const char *file, long *eline); | 158 | int NCONF_load(CONF *conf, const char *file, long *eline); |
| 161 | #ifndef OPENSSL_NO_FP_API | ||
| 162 | int NCONF_load_fp(CONF *conf, FILE *fp, long *eline); | 159 | int NCONF_load_fp(CONF *conf, FILE *fp, long *eline); |
| 163 | #endif | ||
| 164 | int NCONF_load_bio(CONF *conf, BIO *bp, long *eline); | 160 | int NCONF_load_bio(CONF *conf, BIO *bp, long *eline); |
| 165 | STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, const char *section); | 161 | STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, const char *section); |
| 166 | char *NCONF_get_string(const CONF *conf, const char *group, const char *name); | 162 | char *NCONF_get_string(const CONF *conf, const char *group, const char *name); |
diff --git a/src/lib/libssl/src/crypto/conf/conf_lib.c b/src/lib/libssl/src/crypto/conf/conf_lib.c index 35bdda3d64..164e9bebf8 100644 --- a/src/lib/libssl/src/crypto/conf/conf_lib.c +++ b/src/lib/libssl/src/crypto/conf/conf_lib.c | |||
| @@ -106,7 +106,6 @@ LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file, | |||
| 106 | return ltmp; | 106 | return ltmp; |
| 107 | } | 107 | } |
| 108 | 108 | ||
| 109 | #ifndef OPENSSL_NO_FP_API | ||
| 110 | LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, | 109 | LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, |
| 111 | long *eline) | 110 | long *eline) |
| 112 | { | 111 | { |
| @@ -121,7 +120,6 @@ LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, | |||
| 121 | BIO_free(btmp); | 120 | BIO_free(btmp); |
| 122 | return ltmp; | 121 | return ltmp; |
| 123 | } | 122 | } |
| 124 | #endif | ||
| 125 | 123 | ||
| 126 | LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, | 124 | LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, |
| 127 | long *eline) | 125 | long *eline) |
| @@ -193,7 +191,6 @@ CONF_free(LHASH_OF(CONF_VALUE) *conf) | |||
| 193 | NCONF_free_data(&ctmp); | 191 | NCONF_free_data(&ctmp); |
| 194 | } | 192 | } |
| 195 | 193 | ||
| 196 | #ifndef OPENSSL_NO_FP_API | ||
| 197 | int | 194 | int |
| 198 | CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out) | 195 | CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out) |
| 199 | { | 196 | { |
| @@ -208,7 +205,6 @@ CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out) | |||
| 208 | BIO_free(btmp); | 205 | BIO_free(btmp); |
| 209 | return ret; | 206 | return ret; |
| 210 | } | 207 | } |
| 211 | #endif | ||
| 212 | 208 | ||
| 213 | int | 209 | int |
| 214 | CONF_dump_bio(LHASH_OF(CONF_VALUE) *conf, BIO *out) | 210 | CONF_dump_bio(LHASH_OF(CONF_VALUE) *conf, BIO *out) |
| @@ -269,7 +265,6 @@ NCONF_load(CONF *conf, const char *file, long *eline) | |||
| 269 | return conf->meth->load(conf, file, eline); | 265 | return conf->meth->load(conf, file, eline); |
| 270 | } | 266 | } |
| 271 | 267 | ||
| 272 | #ifndef OPENSSL_NO_FP_API | ||
| 273 | int | 268 | int |
| 274 | NCONF_load_fp(CONF *conf, FILE *fp, long *eline) | 269 | NCONF_load_fp(CONF *conf, FILE *fp, long *eline) |
| 275 | { | 270 | { |
| @@ -284,7 +279,6 @@ NCONF_load_fp(CONF *conf, FILE *fp, long *eline) | |||
| 284 | BIO_free(btmp); | 279 | BIO_free(btmp); |
| 285 | return ret; | 280 | return ret; |
| 286 | } | 281 | } |
| 287 | #endif | ||
| 288 | 282 | ||
| 289 | int | 283 | int |
| 290 | NCONF_load_bio(CONF *conf, BIO *bp, long *eline) | 284 | NCONF_load_bio(CONF *conf, BIO *bp, long *eline) |
| @@ -357,7 +351,6 @@ NCONF_get_number_e(const CONF *conf, const char *group, const char *name, | |||
| 357 | return 1; | 351 | return 1; |
| 358 | } | 352 | } |
| 359 | 353 | ||
| 360 | #ifndef OPENSSL_NO_FP_API | ||
| 361 | int | 354 | int |
| 362 | NCONF_dump_fp(const CONF *conf, FILE *out) | 355 | NCONF_dump_fp(const CONF *conf, FILE *out) |
| 363 | { | 356 | { |
| @@ -371,7 +364,6 @@ NCONF_dump_fp(const CONF *conf, FILE *out) | |||
| 371 | BIO_free(btmp); | 364 | BIO_free(btmp); |
| 372 | return ret; | 365 | return ret; |
| 373 | } | 366 | } |
| 374 | #endif | ||
| 375 | 367 | ||
| 376 | int | 368 | int |
| 377 | NCONF_dump_bio(const CONF *conf, BIO *out) | 369 | NCONF_dump_bio(const CONF *conf, BIO *out) |
diff --git a/src/lib/libssl/src/crypto/crypto.h b/src/lib/libssl/src/crypto/crypto.h index 9307687b27..e3cf3ec7a9 100644 --- a/src/lib/libssl/src/crypto/crypto.h +++ b/src/lib/libssl/src/crypto/crypto.h | |||
| @@ -121,9 +121,7 @@ | |||
| 121 | 121 | ||
| 122 | #include <openssl/opensslconf.h> | 122 | #include <openssl/opensslconf.h> |
| 123 | 123 | ||
| 124 | #ifndef OPENSSL_NO_FP_API | ||
| 125 | #include <stdio.h> | 124 | #include <stdio.h> |
| 126 | #endif | ||
| 127 | 125 | ||
| 128 | #include <openssl/stack.h> | 126 | #include <openssl/stack.h> |
| 129 | #include <openssl/safestack.h> | 127 | #include <openssl/safestack.h> |
| @@ -516,9 +514,7 @@ void CRYPTO_dbg_set_options(long bits); | |||
| 516 | long CRYPTO_dbg_get_options(void); | 514 | long CRYPTO_dbg_get_options(void); |
| 517 | 515 | ||
| 518 | 516 | ||
| 519 | #ifndef OPENSSL_NO_FP_API | ||
| 520 | void CRYPTO_mem_leaks_fp(FILE *); | 517 | void CRYPTO_mem_leaks_fp(FILE *); |
| 521 | #endif | ||
| 522 | void CRYPTO_mem_leaks(struct bio_st *bio); | 518 | void CRYPTO_mem_leaks(struct bio_st *bio); |
| 523 | /* unsigned long order, char *file, int line, int num_bytes, char *addr */ | 519 | /* unsigned long order, char *file, int line, int num_bytes, char *addr */ |
| 524 | typedef void *CRYPTO_MEM_LEAK_CB(unsigned long, const char *, int, int, void *); | 520 | typedef void *CRYPTO_MEM_LEAK_CB(unsigned long, const char *, int, int, void *); |
diff --git a/src/lib/libssl/src/crypto/dh/dh.h b/src/lib/libssl/src/crypto/dh/dh.h index 36ca149b73..0d313ea9b4 100644 --- a/src/lib/libssl/src/crypto/dh/dh.h +++ b/src/lib/libssl/src/crypto/dh/dh.h | |||
| @@ -212,9 +212,7 @@ int DH_generate_key(DH *dh); | |||
| 212 | int DH_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh); | 212 | int DH_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh); |
| 213 | DH * d2i_DHparams(DH **a,const unsigned char **pp, long length); | 213 | DH * d2i_DHparams(DH **a,const unsigned char **pp, long length); |
| 214 | int i2d_DHparams(const DH *a,unsigned char **pp); | 214 | int i2d_DHparams(const DH *a,unsigned char **pp); |
| 215 | #ifndef OPENSSL_NO_FP_API | ||
| 216 | int DHparams_print_fp(FILE *fp, const DH *x); | 215 | int DHparams_print_fp(FILE *fp, const DH *x); |
| 217 | #endif | ||
| 218 | #ifndef OPENSSL_NO_BIO | 216 | #ifndef OPENSSL_NO_BIO |
| 219 | int DHparams_print(BIO *bp, const DH *x); | 217 | int DHparams_print(BIO *bp, const DH *x); |
| 220 | #else | 218 | #else |
diff --git a/src/lib/libssl/src/crypto/dh/dh_prn.c b/src/lib/libssl/src/crypto/dh/dh_prn.c index ae58c2ac87..9745798628 100644 --- a/src/lib/libssl/src/crypto/dh/dh_prn.c +++ b/src/lib/libssl/src/crypto/dh/dh_prn.c | |||
| @@ -61,7 +61,6 @@ | |||
| 61 | #include <openssl/evp.h> | 61 | #include <openssl/evp.h> |
| 62 | #include <openssl/dh.h> | 62 | #include <openssl/dh.h> |
| 63 | 63 | ||
| 64 | #ifndef OPENSSL_NO_FP_API | ||
| 65 | int DHparams_print_fp(FILE *fp, const DH *x) | 64 | int DHparams_print_fp(FILE *fp, const DH *x) |
| 66 | { | 65 | { |
| 67 | BIO *b; | 66 | BIO *b; |
| @@ -77,4 +76,3 @@ int DHparams_print_fp(FILE *fp, const DH *x) | |||
| 77 | BIO_free(b); | 76 | BIO_free(b); |
| 78 | return(ret); | 77 | return(ret); |
| 79 | } | 78 | } |
| 80 | #endif | ||
diff --git a/src/lib/libssl/src/crypto/dsa/dsa.h b/src/lib/libssl/src/crypto/dsa/dsa.h index c871499201..48f7f8196e 100644 --- a/src/lib/libssl/src/crypto/dsa/dsa.h +++ b/src/lib/libssl/src/crypto/dsa/dsa.h | |||
| @@ -247,10 +247,8 @@ int i2d_DSAparams(const DSA *a,unsigned char **pp); | |||
| 247 | int DSAparams_print(BIO *bp, const DSA *x); | 247 | int DSAparams_print(BIO *bp, const DSA *x); |
| 248 | int DSA_print(BIO *bp, const DSA *x, int off); | 248 | int DSA_print(BIO *bp, const DSA *x, int off); |
| 249 | #endif | 249 | #endif |
| 250 | #ifndef OPENSSL_NO_FP_API | ||
| 251 | int DSAparams_print_fp(FILE *fp, const DSA *x); | 250 | int DSAparams_print_fp(FILE *fp, const DSA *x); |
| 252 | int DSA_print_fp(FILE *bp, const DSA *x, int off); | 251 | int DSA_print_fp(FILE *bp, const DSA *x, int off); |
| 253 | #endif | ||
| 254 | 252 | ||
| 255 | #define DSS_prime_checks 50 | 253 | #define DSS_prime_checks 50 |
| 256 | /* Primality test according to FIPS PUB 186[-1], Appendix 2.1: | 254 | /* Primality test according to FIPS PUB 186[-1], Appendix 2.1: |
diff --git a/src/lib/libssl/src/crypto/dsa/dsa_prn.c b/src/lib/libssl/src/crypto/dsa/dsa_prn.c index 6f29f5e240..638f541975 100644 --- a/src/lib/libssl/src/crypto/dsa/dsa_prn.c +++ b/src/lib/libssl/src/crypto/dsa/dsa_prn.c | |||
| @@ -61,7 +61,6 @@ | |||
| 61 | #include <openssl/evp.h> | 61 | #include <openssl/evp.h> |
| 62 | #include <openssl/dsa.h> | 62 | #include <openssl/dsa.h> |
| 63 | 63 | ||
| 64 | #ifndef OPENSSL_NO_FP_API | ||
| 65 | int DSA_print_fp(FILE *fp, const DSA *x, int off) | 64 | int DSA_print_fp(FILE *fp, const DSA *x, int off) |
| 66 | { | 65 | { |
| 67 | BIO *b; | 66 | BIO *b; |
| @@ -93,7 +92,6 @@ int DSAparams_print_fp(FILE *fp, const DSA *x) | |||
| 93 | BIO_free(b); | 92 | BIO_free(b); |
| 94 | return(ret); | 93 | return(ret); |
| 95 | } | 94 | } |
| 96 | #endif | ||
| 97 | 95 | ||
| 98 | int DSA_print(BIO *bp, const DSA *x, int off) | 96 | int DSA_print(BIO *bp, const DSA *x, int off) |
| 99 | { | 97 | { |
diff --git a/src/lib/libssl/src/crypto/ec/ec.h b/src/lib/libssl/src/crypto/ec/ec.h index 86f8c6820d..1e0b929304 100644 --- a/src/lib/libssl/src/crypto/ec/ec.h +++ b/src/lib/libssl/src/crypto/ec/ec.h | |||
| @@ -695,9 +695,7 @@ int i2d_ECPKParameters(const EC_GROUP *, unsigned char **out); | |||
| 695 | #ifndef OPENSSL_NO_BIO | 695 | #ifndef OPENSSL_NO_BIO |
| 696 | int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off); | 696 | int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off); |
| 697 | #endif | 697 | #endif |
| 698 | #ifndef OPENSSL_NO_FP_API | ||
| 699 | int ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off); | 698 | int ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off); |
| 700 | #endif | ||
| 701 | 699 | ||
| 702 | 700 | ||
| 703 | /********************************************************************/ | 701 | /********************************************************************/ |
| @@ -930,7 +928,6 @@ int ECParameters_print(BIO *bp, const EC_KEY *key); | |||
| 930 | int EC_KEY_print(BIO *bp, const EC_KEY *key, int off); | 928 | int EC_KEY_print(BIO *bp, const EC_KEY *key, int off); |
| 931 | 929 | ||
| 932 | #endif | 930 | #endif |
| 933 | #ifndef OPENSSL_NO_FP_API | ||
| 934 | /** Prints out the ec parameters on human readable form. | 931 | /** Prints out the ec parameters on human readable form. |
| 935 | * \param fp file descriptor to which the information is printed | 932 | * \param fp file descriptor to which the information is printed |
| 936 | * \param key EC_KEY object | 933 | * \param key EC_KEY object |
| @@ -946,7 +943,6 @@ int ECParameters_print_fp(FILE *fp, const EC_KEY *key); | |||
| 946 | */ | 943 | */ |
| 947 | int EC_KEY_print_fp(FILE *fp, const EC_KEY *key, int off); | 944 | int EC_KEY_print_fp(FILE *fp, const EC_KEY *key, int off); |
| 948 | 945 | ||
| 949 | #endif | ||
| 950 | 946 | ||
| 951 | #define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x) | 947 | #define ECParameters_dup(x) ASN1_dup_of(EC_KEY,i2d_ECParameters,d2i_ECParameters,x) |
| 952 | 948 | ||
diff --git a/src/lib/libssl/src/crypto/ec/eck_prn.c b/src/lib/libssl/src/crypto/ec/eck_prn.c index 86107d5142..3f2973e5b6 100644 --- a/src/lib/libssl/src/crypto/ec/eck_prn.c +++ b/src/lib/libssl/src/crypto/ec/eck_prn.c | |||
| @@ -67,7 +67,6 @@ | |||
| 67 | #include <openssl/ec.h> | 67 | #include <openssl/ec.h> |
| 68 | #include <openssl/bn.h> | 68 | #include <openssl/bn.h> |
| 69 | 69 | ||
| 70 | #ifndef OPENSSL_NO_FP_API | ||
| 71 | int | 70 | int |
| 72 | ECPKParameters_print_fp(FILE * fp, const EC_GROUP * x, int off) | 71 | ECPKParameters_print_fp(FILE * fp, const EC_GROUP * x, int off) |
| 73 | { | 72 | { |
| @@ -115,7 +114,6 @@ ECParameters_print_fp(FILE * fp, const EC_KEY * x) | |||
| 115 | BIO_free(b); | 114 | BIO_free(b); |
| 116 | return (ret); | 115 | return (ret); |
| 117 | } | 116 | } |
| 118 | #endif | ||
| 119 | 117 | ||
| 120 | int | 118 | int |
| 121 | EC_KEY_print(BIO * bp, const EC_KEY * x, int off) | 119 | EC_KEY_print(BIO * bp, const EC_KEY * x, int off) |
diff --git a/src/lib/libssl/src/crypto/err/err.h b/src/lib/libssl/src/crypto/err/err.h index 601f56a624..0396aba726 100644 --- a/src/lib/libssl/src/crypto/err/err.h +++ b/src/lib/libssl/src/crypto/err/err.h | |||
| @@ -114,10 +114,8 @@ | |||
| 114 | 114 | ||
| 115 | #include <openssl/opensslconf.h> | 115 | #include <openssl/opensslconf.h> |
| 116 | 116 | ||
| 117 | #ifndef OPENSSL_NO_FP_API | ||
| 118 | #include <stdio.h> | 117 | #include <stdio.h> |
| 119 | #include <stdlib.h> | 118 | #include <stdlib.h> |
| 120 | #endif | ||
| 121 | 119 | ||
| 122 | #include <openssl/ossl_typ.h> | 120 | #include <openssl/ossl_typ.h> |
| 123 | #ifndef OPENSSL_NO_BIO | 121 | #ifndef OPENSSL_NO_BIO |
| @@ -337,9 +335,7 @@ const char *ERR_func_error_string(unsigned long e); | |||
| 337 | const char *ERR_reason_error_string(unsigned long e); | 335 | const char *ERR_reason_error_string(unsigned long e); |
| 338 | void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u), | 336 | void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u), |
| 339 | void *u); | 337 | void *u); |
| 340 | #ifndef OPENSSL_NO_FP_API | ||
| 341 | void ERR_print_errors_fp(FILE *fp); | 338 | void ERR_print_errors_fp(FILE *fp); |
| 342 | #endif | ||
| 343 | #ifndef OPENSSL_NO_BIO | 339 | #ifndef OPENSSL_NO_BIO |
| 344 | void ERR_print_errors(BIO *bp); | 340 | void ERR_print_errors(BIO *bp); |
| 345 | #endif | 341 | #endif |
diff --git a/src/lib/libssl/src/crypto/err/err_prn.c b/src/lib/libssl/src/crypto/err/err_prn.c index d6b488fee9..7790287a3f 100644 --- a/src/lib/libssl/src/crypto/err/err_prn.c +++ b/src/lib/libssl/src/crypto/err/err_prn.c | |||
| @@ -86,7 +86,6 @@ ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u), void *u) | |||
| 86 | } | 86 | } |
| 87 | } | 87 | } |
| 88 | 88 | ||
| 89 | #ifndef OPENSSL_NO_FP_API | ||
| 90 | static int | 89 | static int |
| 91 | print_fp(const char *str, size_t len, void *fp) | 90 | print_fp(const char *str, size_t len, void *fp) |
| 92 | { | 91 | { |
| @@ -103,7 +102,6 @@ ERR_print_errors_fp(FILE *fp) | |||
| 103 | { | 102 | { |
| 104 | ERR_print_errors_cb(print_fp, fp); | 103 | ERR_print_errors_cb(print_fp, fp); |
| 105 | } | 104 | } |
| 106 | #endif | ||
| 107 | 105 | ||
| 108 | static int | 106 | static int |
| 109 | print_bio(const char *str, size_t len, void *bp) | 107 | print_bio(const char *str, size_t len, void *bp) |
diff --git a/src/lib/libssl/src/crypto/lhash/lh_stats.c b/src/lib/libssl/src/crypto/lhash/lh_stats.c index 34c7d77cb1..4676d9810d 100644 --- a/src/lib/libssl/src/crypto/lhash/lh_stats.c +++ b/src/lib/libssl/src/crypto/lhash/lh_stats.c | |||
| @@ -140,7 +140,6 @@ lh_node_usage_stats(LHASH *lh, FILE *out) | |||
| 140 | 140 | ||
| 141 | #else | 141 | #else |
| 142 | 142 | ||
| 143 | #ifndef OPENSSL_NO_FP_API | ||
| 144 | void | 143 | void |
| 145 | lh_stats(const _LHASH *lh, FILE *fp) | 144 | lh_stats(const _LHASH *lh, FILE *fp) |
| 146 | { | 145 | { |
| @@ -183,7 +182,6 @@ lh_node_usage_stats(const _LHASH *lh, FILE *fp) | |||
| 183 | end:; | 182 | end:; |
| 184 | } | 183 | } |
| 185 | 184 | ||
| 186 | #endif | ||
| 187 | 185 | ||
| 188 | void | 186 | void |
| 189 | lh_stats_bio(const _LHASH *lh, BIO *out) | 187 | lh_stats_bio(const _LHASH *lh, BIO *out) |
diff --git a/src/lib/libssl/src/crypto/lhash/lhash.h b/src/lib/libssl/src/crypto/lhash/lhash.h index 187a284243..8147417cd8 100644 --- a/src/lib/libssl/src/crypto/lhash/lhash.h +++ b/src/lib/libssl/src/crypto/lhash/lhash.h | |||
| @@ -65,9 +65,7 @@ | |||
| 65 | 65 | ||
| 66 | #include <openssl/opensslconf.h> | 66 | #include <openssl/opensslconf.h> |
| 67 | 67 | ||
| 68 | #ifndef OPENSSL_NO_FP_API | ||
| 69 | #include <stdio.h> | 68 | #include <stdio.h> |
| 70 | #endif | ||
| 71 | 69 | ||
| 72 | #ifndef OPENSSL_NO_BIO | 70 | #ifndef OPENSSL_NO_BIO |
| 73 | #include <openssl/bio.h> | 71 | #include <openssl/bio.h> |
| @@ -181,11 +179,9 @@ void lh_doall_arg(_LHASH *lh, LHASH_DOALL_ARG_FN_TYPE func, void *arg); | |||
| 181 | unsigned long lh_strhash(const char *c); | 179 | unsigned long lh_strhash(const char *c); |
| 182 | unsigned long lh_num_items(const _LHASH *lh); | 180 | unsigned long lh_num_items(const _LHASH *lh); |
| 183 | 181 | ||
| 184 | #ifndef OPENSSL_NO_FP_API | ||
| 185 | void lh_stats(const _LHASH *lh, FILE *out); | 182 | void lh_stats(const _LHASH *lh, FILE *out); |
| 186 | void lh_node_stats(const _LHASH *lh, FILE *out); | 183 | void lh_node_stats(const _LHASH *lh, FILE *out); |
| 187 | void lh_node_usage_stats(const _LHASH *lh, FILE *out); | 184 | void lh_node_usage_stats(const _LHASH *lh, FILE *out); |
| 188 | #endif | ||
| 189 | 185 | ||
| 190 | #ifndef OPENSSL_NO_BIO | 186 | #ifndef OPENSSL_NO_BIO |
| 191 | void lh_stats_bio(const _LHASH *lh, BIO *out); | 187 | void lh_stats_bio(const _LHASH *lh, BIO *out); |
diff --git a/src/lib/libssl/src/crypto/mem_dbg.c b/src/lib/libssl/src/crypto/mem_dbg.c index 4337c52774..288ee907c3 100644 --- a/src/lib/libssl/src/crypto/mem_dbg.c +++ b/src/lib/libssl/src/crypto/mem_dbg.c | |||
| @@ -187,13 +187,11 @@ CRYPTO_mem_leaks(BIO *b) | |||
| 187 | return; | 187 | return; |
| 188 | } | 188 | } |
| 189 | 189 | ||
| 190 | #ifndef OPENSSL_NO_FP_API | ||
| 191 | void | 190 | void |
| 192 | CRYPTO_mem_leaks_fp(FILE *fp) | 191 | CRYPTO_mem_leaks_fp(FILE *fp) |
| 193 | { | 192 | { |
| 194 | return; | 193 | return; |
| 195 | } | 194 | } |
| 196 | #endif | ||
| 197 | 195 | ||
| 198 | 196 | ||
| 199 | void | 197 | void |
diff --git a/src/lib/libssl/src/crypto/pem/pem.h b/src/lib/libssl/src/crypto/pem/pem.h index 6eae9345a1..daf5b1375d 100644 --- a/src/lib/libssl/src/crypto/pem/pem.h +++ b/src/lib/libssl/src/crypto/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/libssl/src/crypto/pem/pem_all.c b/src/lib/libssl/src/crypto/pem/pem_all.c index 8b54d1a698..2cca8fbc39 100644 --- a/src/lib/libssl/src/crypto/pem/pem_all.c +++ b/src/lib/libssl/src/crypto/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/libssl/src/crypto/pem/pem_info.c b/src/lib/libssl/src/crypto/pem/pem_info.c index 967d6d2d41..40600e30f3 100644 --- a/src/lib/libssl/src/crypto/pem/pem_info.c +++ b/src/lib/libssl/src/crypto/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/libssl/src/crypto/pem/pem_lib.c b/src/lib/libssl/src/crypto/pem/pem_lib.c index 9bc2b27285..58d2bfbee9 100644 --- a/src/lib/libssl/src/crypto/pem/pem_lib.c +++ b/src/lib/libssl/src/crypto/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/libssl/src/crypto/pem/pem_pk8.c b/src/lib/libssl/src/crypto/pem/pem_pk8.c index 228ecfceaf..2e0a44d4b8 100644 --- a/src/lib/libssl/src/crypto/pem/pem_pk8.c +++ b/src/lib/libssl/src/crypto/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/libssl/src/crypto/pem/pem_pkey.c b/src/lib/libssl/src/crypto/pem/pem_pkey.c index bcce39281e..843ade927a 100644 --- a/src/lib/libssl/src/crypto/pem/pem_pkey.c +++ b/src/lib/libssl/src/crypto/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 | ||
diff --git a/src/lib/libssl/src/crypto/pkcs12/p12_utl.c b/src/lib/libssl/src/crypto/pkcs12/p12_utl.c index 9c58036169..ec3dcb84fd 100644 --- a/src/lib/libssl/src/crypto/pkcs12/p12_utl.c +++ b/src/lib/libssl/src/crypto/pkcs12/p12_utl.c | |||
| @@ -100,23 +100,19 @@ int i2d_PKCS12_bio(BIO *bp, PKCS12 *p12) | |||
| 100 | return ASN1_item_i2d_bio(ASN1_ITEM_rptr(PKCS12), bp, p12); | 100 | return ASN1_item_i2d_bio(ASN1_ITEM_rptr(PKCS12), bp, p12); |
| 101 | } | 101 | } |
| 102 | 102 | ||
| 103 | #ifndef OPENSSL_NO_FP_API | ||
| 104 | int i2d_PKCS12_fp(FILE *fp, PKCS12 *p12) | 103 | int i2d_PKCS12_fp(FILE *fp, PKCS12 *p12) |
| 105 | { | 104 | { |
| 106 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(PKCS12), fp, p12); | 105 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(PKCS12), fp, p12); |
| 107 | } | 106 | } |
| 108 | #endif | ||
| 109 | 107 | ||
| 110 | PKCS12 *d2i_PKCS12_bio(BIO *bp, PKCS12 **p12) | 108 | PKCS12 *d2i_PKCS12_bio(BIO *bp, PKCS12 **p12) |
| 111 | { | 109 | { |
| 112 | return ASN1_item_d2i_bio(ASN1_ITEM_rptr(PKCS12), bp, p12); | 110 | return ASN1_item_d2i_bio(ASN1_ITEM_rptr(PKCS12), bp, p12); |
| 113 | } | 111 | } |
| 114 | #ifndef OPENSSL_NO_FP_API | ||
| 115 | PKCS12 *d2i_PKCS12_fp(FILE *fp, PKCS12 **p12) | 112 | PKCS12 *d2i_PKCS12_fp(FILE *fp, PKCS12 **p12) |
| 116 | { | 113 | { |
| 117 | return ASN1_item_d2i_fp(ASN1_ITEM_rptr(PKCS12), fp, p12); | 114 | return ASN1_item_d2i_fp(ASN1_ITEM_rptr(PKCS12), fp, p12); |
| 118 | } | 115 | } |
| 119 | #endif | ||
| 120 | 116 | ||
| 121 | PKCS12_SAFEBAG *PKCS12_x5092certbag(X509 *x509) | 117 | PKCS12_SAFEBAG *PKCS12_x5092certbag(X509 *x509) |
| 122 | { | 118 | { |
diff --git a/src/lib/libssl/src/crypto/pkcs7/pkcs7.h b/src/lib/libssl/src/crypto/pkcs7/pkcs7.h index a1220aba00..fa4a19dab0 100644 --- a/src/lib/libssl/src/crypto/pkcs7/pkcs7.h +++ b/src/lib/libssl/src/crypto/pkcs7/pkcs7.h | |||
| @@ -273,10 +273,8 @@ DECLARE_ASN1_FUNCTIONS(PKCS7_ISSUER_AND_SERIAL) | |||
| 273 | 273 | ||
| 274 | int PKCS7_ISSUER_AND_SERIAL_digest(PKCS7_ISSUER_AND_SERIAL *data,const EVP_MD *type, | 274 | int PKCS7_ISSUER_AND_SERIAL_digest(PKCS7_ISSUER_AND_SERIAL *data,const EVP_MD *type, |
| 275 | unsigned char *md,unsigned int *len); | 275 | unsigned char *md,unsigned int *len); |
| 276 | #ifndef OPENSSL_NO_FP_API | ||
| 277 | PKCS7 *d2i_PKCS7_fp(FILE *fp,PKCS7 **p7); | 276 | PKCS7 *d2i_PKCS7_fp(FILE *fp,PKCS7 **p7); |
| 278 | int i2d_PKCS7_fp(FILE *fp,PKCS7 *p7); | 277 | int i2d_PKCS7_fp(FILE *fp,PKCS7 *p7); |
| 279 | #endif | ||
| 280 | PKCS7 *PKCS7_dup(PKCS7 *p7); | 278 | PKCS7 *PKCS7_dup(PKCS7 *p7); |
| 281 | PKCS7 *d2i_PKCS7_bio(BIO *bp,PKCS7 **p7); | 279 | PKCS7 *d2i_PKCS7_bio(BIO *bp,PKCS7 **p7); |
| 282 | int i2d_PKCS7_bio(BIO *bp,PKCS7 *p7); | 280 | int i2d_PKCS7_bio(BIO *bp,PKCS7 *p7); |
diff --git a/src/lib/libssl/src/crypto/rsa/rsa.h b/src/lib/libssl/src/crypto/rsa/rsa.h index 5f269e577a..2b78d58bb6 100644 --- a/src/lib/libssl/src/crypto/rsa/rsa.h +++ b/src/lib/libssl/src/crypto/rsa/rsa.h | |||
| @@ -333,9 +333,7 @@ typedef struct rsa_pss_params_st | |||
| 333 | 333 | ||
| 334 | DECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS) | 334 | DECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS) |
| 335 | 335 | ||
| 336 | #ifndef OPENSSL_NO_FP_API | ||
| 337 | int RSA_print_fp(FILE *fp, const RSA *r,int offset); | 336 | int RSA_print_fp(FILE *fp, const RSA *r,int offset); |
| 338 | #endif | ||
| 339 | 337 | ||
| 340 | #ifndef OPENSSL_NO_BIO | 338 | #ifndef OPENSSL_NO_BIO |
| 341 | int RSA_print(BIO *bp, const RSA *r,int offset); | 339 | int RSA_print(BIO *bp, const RSA *r,int offset); |
diff --git a/src/lib/libssl/src/crypto/rsa/rsa_prn.c b/src/lib/libssl/src/crypto/rsa/rsa_prn.c index 224db0fae5..c0e75065f0 100644 --- a/src/lib/libssl/src/crypto/rsa/rsa_prn.c +++ b/src/lib/libssl/src/crypto/rsa/rsa_prn.c | |||
| @@ -61,7 +61,6 @@ | |||
| 61 | #include <openssl/rsa.h> | 61 | #include <openssl/rsa.h> |
| 62 | #include <openssl/evp.h> | 62 | #include <openssl/evp.h> |
| 63 | 63 | ||
| 64 | #ifndef OPENSSL_NO_FP_API | ||
| 65 | int RSA_print_fp(FILE *fp, const RSA *x, int off) | 64 | int RSA_print_fp(FILE *fp, const RSA *x, int off) |
| 66 | { | 65 | { |
| 67 | BIO *b; | 66 | BIO *b; |
| @@ -77,7 +76,6 @@ int RSA_print_fp(FILE *fp, const RSA *x, int off) | |||
| 77 | BIO_free(b); | 76 | BIO_free(b); |
| 78 | return(ret); | 77 | return(ret); |
| 79 | } | 78 | } |
| 80 | #endif | ||
| 81 | 79 | ||
| 82 | int RSA_print(BIO *bp, const RSA *x, int off) | 80 | int RSA_print(BIO *bp, const RSA *x, int off) |
| 83 | { | 81 | { |
diff --git a/src/lib/libssl/src/crypto/ts/ts_asn1.c b/src/lib/libssl/src/crypto/ts/ts_asn1.c index 9e16b01f93..b5dc453510 100644 --- a/src/lib/libssl/src/crypto/ts/ts_asn1.c +++ b/src/lib/libssl/src/crypto/ts/ts_asn1.c | |||
| @@ -82,7 +82,6 @@ i2d_TS_MSG_IMPRINT_bio(BIO *bp, TS_MSG_IMPRINT *a) | |||
| 82 | } | 82 | } |
| 83 | #endif | 83 | #endif |
| 84 | 84 | ||
| 85 | #ifndef OPENSSL_NO_FP_API | ||
| 86 | TS_MSG_IMPRINT * | 85 | TS_MSG_IMPRINT * |
| 87 | d2i_TS_MSG_IMPRINT_fp(FILE *fp, TS_MSG_IMPRINT **a) | 86 | d2i_TS_MSG_IMPRINT_fp(FILE *fp, TS_MSG_IMPRINT **a) |
| 88 | { | 87 | { |
| @@ -95,7 +94,6 @@ i2d_TS_MSG_IMPRINT_fp(FILE *fp, TS_MSG_IMPRINT *a) | |||
| 95 | { | 94 | { |
| 96 | return ASN1_i2d_fp_of_const(TS_MSG_IMPRINT, i2d_TS_MSG_IMPRINT, fp, a); | 95 | return ASN1_i2d_fp_of_const(TS_MSG_IMPRINT, i2d_TS_MSG_IMPRINT, fp, a); |
| 97 | } | 96 | } |
| 98 | #endif | ||
| 99 | 97 | ||
| 100 | ASN1_SEQUENCE(TS_REQ) = { | 98 | ASN1_SEQUENCE(TS_REQ) = { |
| 101 | ASN1_SIMPLE(TS_REQ, version, ASN1_INTEGER), | 99 | ASN1_SIMPLE(TS_REQ, version, ASN1_INTEGER), |
| @@ -123,7 +121,6 @@ i2d_TS_REQ_bio(BIO *bp, TS_REQ *a) | |||
| 123 | } | 121 | } |
| 124 | #endif | 122 | #endif |
| 125 | 123 | ||
| 126 | #ifndef OPENSSL_NO_FP_API | ||
| 127 | TS_REQ * | 124 | TS_REQ * |
| 128 | d2i_TS_REQ_fp(FILE *fp, TS_REQ **a) | 125 | d2i_TS_REQ_fp(FILE *fp, TS_REQ **a) |
| 129 | { | 126 | { |
| @@ -135,7 +132,6 @@ i2d_TS_REQ_fp(FILE *fp, TS_REQ *a) | |||
| 135 | { | 132 | { |
| 136 | return ASN1_i2d_fp_of_const(TS_REQ, i2d_TS_REQ, fp, a); | 133 | return ASN1_i2d_fp_of_const(TS_REQ, i2d_TS_REQ, fp, a); |
| 137 | } | 134 | } |
| 138 | #endif | ||
| 139 | 135 | ||
| 140 | ASN1_SEQUENCE(TS_ACCURACY) = { | 136 | ASN1_SEQUENCE(TS_ACCURACY) = { |
| 141 | ASN1_OPT(TS_ACCURACY, seconds, ASN1_INTEGER), | 137 | ASN1_OPT(TS_ACCURACY, seconds, ASN1_INTEGER), |
| @@ -177,7 +173,6 @@ i2d_TS_TST_INFO_bio(BIO *bp, TS_TST_INFO *a) | |||
| 177 | } | 173 | } |
| 178 | #endif | 174 | #endif |
| 179 | 175 | ||
| 180 | #ifndef OPENSSL_NO_FP_API | ||
| 181 | TS_TST_INFO * | 176 | TS_TST_INFO * |
| 182 | d2i_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO **a) | 177 | d2i_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO **a) |
| 183 | { | 178 | { |
| @@ -190,7 +185,6 @@ i2d_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO *a) | |||
| 190 | { | 185 | { |
| 191 | return ASN1_i2d_fp_of_const(TS_TST_INFO, i2d_TS_TST_INFO, fp, a); | 186 | return ASN1_i2d_fp_of_const(TS_TST_INFO, i2d_TS_TST_INFO, fp, a); |
| 192 | } | 187 | } |
| 193 | #endif | ||
| 194 | 188 | ||
| 195 | ASN1_SEQUENCE(TS_STATUS_INFO) = { | 189 | ASN1_SEQUENCE(TS_STATUS_INFO) = { |
| 196 | ASN1_SIMPLE(TS_STATUS_INFO, status, ASN1_INTEGER), | 190 | ASN1_SIMPLE(TS_STATUS_INFO, status, ASN1_INTEGER), |
| @@ -268,7 +262,6 @@ i2d_TS_RESP_bio(BIO *bp, TS_RESP *a) | |||
| 268 | } | 262 | } |
| 269 | #endif | 263 | #endif |
| 270 | 264 | ||
| 271 | #ifndef OPENSSL_NO_FP_API | ||
| 272 | TS_RESP * | 265 | TS_RESP * |
| 273 | d2i_TS_RESP_fp(FILE *fp, TS_RESP **a) | 266 | d2i_TS_RESP_fp(FILE *fp, TS_RESP **a) |
| 274 | { | 267 | { |
| @@ -280,7 +273,6 @@ i2d_TS_RESP_fp(FILE *fp, TS_RESP *a) | |||
| 280 | { | 273 | { |
| 281 | return ASN1_i2d_fp_of_const(TS_RESP, i2d_TS_RESP, fp, a); | 274 | return ASN1_i2d_fp_of_const(TS_RESP, i2d_TS_RESP, fp, a); |
| 282 | } | 275 | } |
| 283 | #endif | ||
| 284 | 276 | ||
| 285 | ASN1_SEQUENCE(ESS_ISSUER_SERIAL) = { | 277 | ASN1_SEQUENCE(ESS_ISSUER_SERIAL) = { |
| 286 | ASN1_SEQUENCE_OF(ESS_ISSUER_SERIAL, issuer, GENERAL_NAME), | 278 | ASN1_SEQUENCE_OF(ESS_ISSUER_SERIAL, issuer, GENERAL_NAME), |
diff --git a/src/lib/libssl/src/crypto/x509/x509.h b/src/lib/libssl/src/crypto/x509/x509.h index 6a29e4bd71..9ac1eddb2a 100644 --- a/src/lib/libssl/src/crypto/x509/x509.h +++ b/src/lib/libssl/src/crypto/x509/x509.h | |||
| @@ -673,7 +673,6 @@ int X509_NAME_digest(const X509_NAME *data,const EVP_MD *type, | |||
| 673 | unsigned char *md, unsigned int *len); | 673 | unsigned char *md, unsigned int *len); |
| 674 | #endif | 674 | #endif |
| 675 | 675 | ||
| 676 | #ifndef OPENSSL_NO_FP_API | ||
| 677 | X509 *d2i_X509_fp(FILE *fp, X509 **x509); | 676 | X509 *d2i_X509_fp(FILE *fp, X509 **x509); |
| 678 | int i2d_X509_fp(FILE *fp,X509 *x509); | 677 | int i2d_X509_fp(FILE *fp,X509 *x509); |
| 679 | X509_CRL *d2i_X509_CRL_fp(FILE *fp,X509_CRL **crl); | 678 | X509_CRL *d2i_X509_CRL_fp(FILE *fp,X509_CRL **crl); |
| @@ -709,7 +708,6 @@ int i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey); | |||
| 709 | EVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a); | 708 | EVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a); |
| 710 | int i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey); | 709 | int i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey); |
| 711 | EVP_PKEY *d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a); | 710 | EVP_PKEY *d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a); |
| 712 | #endif | ||
| 713 | 711 | ||
| 714 | #ifndef OPENSSL_NO_BIO | 712 | #ifndef OPENSSL_NO_BIO |
| 715 | X509 *d2i_X509_bio(BIO *bp,X509 **x509); | 713 | X509 *d2i_X509_bio(BIO *bp,X509 **x509); |
| @@ -965,13 +963,11 @@ unsigned long X509_NAME_hash_old(X509_NAME *x); | |||
| 965 | 963 | ||
| 966 | int X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b); | 964 | int X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b); |
| 967 | int X509_CRL_match(const X509_CRL *a, const X509_CRL *b); | 965 | int X509_CRL_match(const X509_CRL *a, const X509_CRL *b); |
| 968 | #ifndef OPENSSL_NO_FP_API | ||
| 969 | int X509_print_ex_fp(FILE *bp,X509 *x, unsigned long nmflag, unsigned long cflag); | 966 | int X509_print_ex_fp(FILE *bp,X509 *x, unsigned long nmflag, unsigned long cflag); |
| 970 | int X509_print_fp(FILE *bp,X509 *x); | 967 | int X509_print_fp(FILE *bp,X509 *x); |
| 971 | int X509_CRL_print_fp(FILE *bp,X509_CRL *x); | 968 | int X509_CRL_print_fp(FILE *bp,X509_CRL *x); |
| 972 | int X509_REQ_print_fp(FILE *bp,X509_REQ *req); | 969 | int X509_REQ_print_fp(FILE *bp,X509_REQ *req); |
| 973 | int X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags); | 970 | int X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags); |
| 974 | #endif | ||
| 975 | 971 | ||
| 976 | #ifndef OPENSSL_NO_BIO | 972 | #ifndef OPENSSL_NO_BIO |
| 977 | int X509_NAME_print(BIO *bp, X509_NAME *name, int obase); | 973 | int X509_NAME_print(BIO *bp, X509_NAME *name, int obase); |
diff --git a/src/lib/libssl/src/crypto/x509/x_all.c b/src/lib/libssl/src/crypto/x509/x_all.c index 92f80ca433..95d0777829 100644 --- a/src/lib/libssl/src/crypto/x509/x_all.c +++ b/src/lib/libssl/src/crypto/x509/x_all.c | |||
| @@ -146,7 +146,6 @@ NETSCAPE_SPKI_sign(NETSCAPE_SPKI *x, EVP_PKEY *pkey, const EVP_MD *md) | |||
| 146 | x->sig_algor, NULL, x->signature, x->spkac, pkey, md)); | 146 | x->sig_algor, NULL, x->signature, x->spkac, pkey, md)); |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | #ifndef OPENSSL_NO_FP_API | ||
| 150 | X509 * | 149 | X509 * |
| 151 | d2i_X509_fp(FILE *fp, X509 **x509) | 150 | d2i_X509_fp(FILE *fp, X509 **x509) |
| 152 | { | 151 | { |
| @@ -158,7 +157,6 @@ i2d_X509_fp(FILE *fp, X509 *x509) | |||
| 158 | { | 157 | { |
| 159 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509), fp, x509); | 158 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509), fp, x509); |
| 160 | } | 159 | } |
| 161 | #endif | ||
| 162 | 160 | ||
| 163 | X509 * | 161 | X509 * |
| 164 | d2i_X509_bio(BIO *bp, X509 **x509) | 162 | d2i_X509_bio(BIO *bp, X509 **x509) |
| @@ -172,7 +170,6 @@ i2d_X509_bio(BIO *bp, X509 *x509) | |||
| 172 | return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509), bp, x509); | 170 | return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509), bp, x509); |
| 173 | } | 171 | } |
| 174 | 172 | ||
| 175 | #ifndef OPENSSL_NO_FP_API | ||
| 176 | X509_CRL * | 173 | X509_CRL * |
| 177 | d2i_X509_CRL_fp(FILE *fp, X509_CRL **crl) | 174 | d2i_X509_CRL_fp(FILE *fp, X509_CRL **crl) |
| 178 | { | 175 | { |
| @@ -184,7 +181,6 @@ i2d_X509_CRL_fp(FILE *fp, X509_CRL *crl) | |||
| 184 | { | 181 | { |
| 185 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509_CRL), fp, crl); | 182 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509_CRL), fp, crl); |
| 186 | } | 183 | } |
| 187 | #endif | ||
| 188 | 184 | ||
| 189 | X509_CRL * | 185 | X509_CRL * |
| 190 | d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl) | 186 | d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl) |
| @@ -198,7 +194,6 @@ i2d_X509_CRL_bio(BIO *bp, X509_CRL *crl) | |||
| 198 | return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509_CRL), bp, crl); | 194 | return ASN1_item_i2d_bio(ASN1_ITEM_rptr(X509_CRL), bp, crl); |
| 199 | } | 195 | } |
| 200 | 196 | ||
| 201 | #ifndef OPENSSL_NO_FP_API | ||
| 202 | PKCS7 * | 197 | PKCS7 * |
| 203 | d2i_PKCS7_fp(FILE *fp, PKCS7 **p7) | 198 | d2i_PKCS7_fp(FILE *fp, PKCS7 **p7) |
| 204 | { | 199 | { |
| @@ -210,7 +205,6 @@ i2d_PKCS7_fp(FILE *fp, PKCS7 *p7) | |||
| 210 | { | 205 | { |
| 211 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(PKCS7), fp, p7); | 206 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(PKCS7), fp, p7); |
| 212 | } | 207 | } |
| 213 | #endif | ||
| 214 | 208 | ||
| 215 | PKCS7 * | 209 | PKCS7 * |
| 216 | d2i_PKCS7_bio(BIO *bp, PKCS7 **p7) | 210 | d2i_PKCS7_bio(BIO *bp, PKCS7 **p7) |
| @@ -224,7 +218,6 @@ i2d_PKCS7_bio(BIO *bp, PKCS7 *p7) | |||
| 224 | return ASN1_item_i2d_bio(ASN1_ITEM_rptr(PKCS7), bp, p7); | 218 | return ASN1_item_i2d_bio(ASN1_ITEM_rptr(PKCS7), bp, p7); |
| 225 | } | 219 | } |
| 226 | 220 | ||
| 227 | #ifndef OPENSSL_NO_FP_API | ||
| 228 | X509_REQ * | 221 | X509_REQ * |
| 229 | d2i_X509_REQ_fp(FILE *fp, X509_REQ **req) | 222 | d2i_X509_REQ_fp(FILE *fp, X509_REQ **req) |
| 230 | { | 223 | { |
| @@ -236,7 +229,6 @@ i2d_X509_REQ_fp(FILE *fp, X509_REQ *req) | |||
| 236 | { | 229 | { |
| 237 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509_REQ), fp, req); | 230 | return ASN1_item_i2d_fp(ASN1_ITEM_rptr(X509_REQ), fp, req); |
| 238 | } | 231 | } |
| 239 | #endif | ||
| 240 | 232 | ||
| 241 | X509_REQ * | 233 | X509_REQ * |
| 242 | d2i_X509_REQ_bio(BIO *bp, X509_REQ **req) | 234 | d2i_X509_REQ_bio(BIO *bp, X509_REQ **req) |
| @@ -252,7 +244,6 @@ i2d_X509_REQ_bio(BIO *bp, X509_REQ *req) | |||
| 252 | 244 | ||
| 253 | #ifndef OPENSSL_NO_RSA | 245 | #ifndef OPENSSL_NO_RSA |
| 254 | 246 | ||
| 255 | #ifndef OPENSSL_NO_FP_API | ||
| 256 | RSA * | 247 | RSA * |
| 257 | d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa) | 248 | d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa) |
| 258 | { | 249 | { |
| @@ -290,7 +281,6 @@ i2d_RSA_PUBKEY_fp(FILE *fp, RSA *rsa) | |||
| 290 | { | 281 | { |
| 291 | return ASN1_i2d_fp((I2D_OF(void))i2d_RSA_PUBKEY, fp, rsa); | 282 | return ASN1_i2d_fp((I2D_OF(void))i2d_RSA_PUBKEY, fp, rsa); |
| 292 | } | 283 | } |
| 293 | #endif | ||
| 294 | 284 | ||
| 295 | RSA * | 285 | RSA * |
| 296 | d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa) | 286 | d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa) |
| @@ -331,7 +321,6 @@ i2d_RSA_PUBKEY_bio(BIO *bp, RSA *rsa) | |||
| 331 | #endif | 321 | #endif |
| 332 | 322 | ||
| 333 | #ifndef OPENSSL_NO_DSA | 323 | #ifndef OPENSSL_NO_DSA |
| 334 | #ifndef OPENSSL_NO_FP_API | ||
| 335 | DSA * | 324 | DSA * |
| 336 | d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa) | 325 | d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa) |
| 337 | { | 326 | { |
| @@ -355,7 +344,6 @@ i2d_DSA_PUBKEY_fp(FILE *fp, DSA *dsa) | |||
| 355 | { | 344 | { |
| 356 | return ASN1_i2d_fp_of(DSA, i2d_DSA_PUBKEY, fp, dsa); | 345 | return ASN1_i2d_fp_of(DSA, i2d_DSA_PUBKEY, fp, dsa); |
| 357 | } | 346 | } |
| 358 | #endif | ||
| 359 | 347 | ||
| 360 | DSA * | 348 | DSA * |
| 361 | d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa) | 349 | d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa) |
| @@ -384,7 +372,6 @@ i2d_DSA_PUBKEY_bio(BIO *bp, DSA *dsa) | |||
| 384 | #endif | 372 | #endif |
| 385 | 373 | ||
| 386 | #ifndef OPENSSL_NO_EC | 374 | #ifndef OPENSSL_NO_EC |
| 387 | #ifndef OPENSSL_NO_FP_API | ||
| 388 | EC_KEY * | 375 | EC_KEY * |
| 389 | d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey) | 376 | d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey) |
| 390 | { | 377 | { |
| @@ -408,7 +395,6 @@ i2d_ECPrivateKey_fp(FILE *fp, EC_KEY *eckey) | |||
| 408 | { | 395 | { |
| 409 | return ASN1_i2d_fp_of(EC_KEY, i2d_ECPrivateKey, fp, eckey); | 396 | return ASN1_i2d_fp_of(EC_KEY, i2d_ECPrivateKey, fp, eckey); |
| 410 | } | 397 | } |
| 411 | #endif | ||
| 412 | EC_KEY * | 398 | EC_KEY * |
| 413 | d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey) | 399 | d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey) |
| 414 | { | 400 | { |
| @@ -487,7 +473,6 @@ PKCS7_ISSUER_AND_SERIAL_digest(PKCS7_ISSUER_AND_SERIAL *data, | |||
| 487 | } | 473 | } |
| 488 | 474 | ||
| 489 | 475 | ||
| 490 | #ifndef OPENSSL_NO_FP_API | ||
| 491 | X509_SIG * | 476 | X509_SIG * |
| 492 | d2i_PKCS8_fp(FILE *fp, X509_SIG **p8) | 477 | d2i_PKCS8_fp(FILE *fp, X509_SIG **p8) |
| 493 | { | 478 | { |
| @@ -499,7 +484,6 @@ i2d_PKCS8_fp(FILE *fp, X509_SIG *p8) | |||
| 499 | { | 484 | { |
| 500 | return ASN1_i2d_fp_of(X509_SIG, i2d_X509_SIG, fp, p8); | 485 | return ASN1_i2d_fp_of(X509_SIG, i2d_X509_SIG, fp, p8); |
| 501 | } | 486 | } |
| 502 | #endif | ||
| 503 | 487 | ||
| 504 | X509_SIG * | 488 | X509_SIG * |
| 505 | d2i_PKCS8_bio(BIO *bp, X509_SIG **p8) | 489 | d2i_PKCS8_bio(BIO *bp, X509_SIG **p8) |
| @@ -513,7 +497,6 @@ i2d_PKCS8_bio(BIO *bp, X509_SIG *p8) | |||
| 513 | return ASN1_i2d_bio_of(X509_SIG, i2d_X509_SIG, bp, p8); | 497 | return ASN1_i2d_bio_of(X509_SIG, i2d_X509_SIG, bp, p8); |
| 514 | } | 498 | } |
| 515 | 499 | ||
| 516 | #ifndef OPENSSL_NO_FP_API | ||
| 517 | PKCS8_PRIV_KEY_INFO * | 500 | PKCS8_PRIV_KEY_INFO * |
| 518 | d2i_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO **p8inf) | 501 | d2i_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO **p8inf) |
| 519 | { | 502 | { |
| @@ -566,7 +549,6 @@ d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a) | |||
| 566 | return ASN1_d2i_fp_of(EVP_PKEY, EVP_PKEY_new, d2i_PUBKEY, fp, a); | 549 | return ASN1_d2i_fp_of(EVP_PKEY, EVP_PKEY_new, d2i_PUBKEY, fp, a); |
| 567 | } | 550 | } |
| 568 | 551 | ||
| 569 | #endif | ||
| 570 | 552 | ||
| 571 | PKCS8_PRIV_KEY_INFO * | 553 | PKCS8_PRIV_KEY_INFO * |
| 572 | d2i_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, PKCS8_PRIV_KEY_INFO **p8inf) | 554 | d2i_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, PKCS8_PRIV_KEY_INFO **p8inf) |
diff --git a/src/lib/libssl/src/crypto/x509v3/v3_prn.c b/src/lib/libssl/src/crypto/x509v3/v3_prn.c index 3874ded51c..ff08534f9a 100644 --- a/src/lib/libssl/src/crypto/x509v3/v3_prn.c +++ b/src/lib/libssl/src/crypto/x509v3/v3_prn.c | |||
| @@ -212,7 +212,6 @@ unknown_ext_print(BIO *out, X509_EXTENSION *ext, unsigned long flag, | |||
| 212 | } | 212 | } |
| 213 | 213 | ||
| 214 | 214 | ||
| 215 | #ifndef OPENSSL_NO_FP_API | ||
| 216 | int | 215 | int |
| 217 | X509V3_EXT_print_fp(FILE *fp, X509_EXTENSION *ext, int flag, int indent) | 216 | X509V3_EXT_print_fp(FILE *fp, X509_EXTENSION *ext, int flag, int indent) |
| 218 | { | 217 | { |
| @@ -225,4 +224,3 @@ X509V3_EXT_print_fp(FILE *fp, X509_EXTENSION *ext, int flag, int indent) | |||
| 225 | BIO_free(bio_tmp); | 224 | BIO_free(bio_tmp); |
| 226 | return ret; | 225 | return ret; |
| 227 | } | 226 | } |
| 228 | #endif | ||
diff --git a/src/lib/libssl/src/ssl/ssl.h b/src/lib/libssl/src/ssl/ssl.h index 49b85ea042..ac2030a0a5 100644 --- a/src/lib/libssl/src/ssl/ssl.h +++ b/src/lib/libssl/src/ssl/ssl.h | |||
| @@ -1651,9 +1651,7 @@ SSL_SESSION *SSL_SESSION_new(void); | |||
| 1651 | const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s, | 1651 | const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s, |
| 1652 | unsigned int *len); | 1652 | unsigned int *len); |
| 1653 | unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s); | 1653 | unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s); |
| 1654 | #ifndef OPENSSL_NO_FP_API | ||
| 1655 | int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses); | 1654 | int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses); |
| 1656 | #endif | ||
| 1657 | #ifndef OPENSSL_NO_BIO | 1655 | #ifndef OPENSSL_NO_BIO |
| 1658 | int SSL_SESSION_print(BIO *fp, const SSL_SESSION *ses); | 1656 | int SSL_SESSION_print(BIO *fp, const SSL_SESSION *ses); |
| 1659 | #endif | 1657 | #endif |
diff --git a/src/lib/libssl/src/ssl/ssl_txt.c b/src/lib/libssl/src/ssl/ssl_txt.c index 734e0c0755..43696db847 100644 --- a/src/lib/libssl/src/ssl/ssl_txt.c +++ b/src/lib/libssl/src/ssl/ssl_txt.c | |||
| @@ -86,7 +86,6 @@ | |||
| 86 | #include <openssl/buffer.h> | 86 | #include <openssl/buffer.h> |
| 87 | #include "ssl_locl.h" | 87 | #include "ssl_locl.h" |
| 88 | 88 | ||
| 89 | #ifndef OPENSSL_NO_FP_API | ||
| 90 | int | 89 | int |
| 91 | SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *x) | 90 | SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *x) |
| 92 | { | 91 | { |
| @@ -102,7 +101,6 @@ SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *x) | |||
| 102 | BIO_free(b); | 101 | BIO_free(b); |
| 103 | return (ret); | 102 | return (ret); |
| 104 | } | 103 | } |
| 105 | #endif | ||
| 106 | 104 | ||
| 107 | int | 105 | int |
| 108 | SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) | 106 | SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) |
diff --git a/src/lib/libssl/ssl.h b/src/lib/libssl/ssl.h index 49b85ea042..ac2030a0a5 100644 --- a/src/lib/libssl/ssl.h +++ b/src/lib/libssl/ssl.h | |||
| @@ -1651,9 +1651,7 @@ SSL_SESSION *SSL_SESSION_new(void); | |||
| 1651 | const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s, | 1651 | const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s, |
| 1652 | unsigned int *len); | 1652 | unsigned int *len); |
| 1653 | unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s); | 1653 | unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s); |
| 1654 | #ifndef OPENSSL_NO_FP_API | ||
| 1655 | int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses); | 1654 | int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses); |
| 1656 | #endif | ||
| 1657 | #ifndef OPENSSL_NO_BIO | 1655 | #ifndef OPENSSL_NO_BIO |
| 1658 | int SSL_SESSION_print(BIO *fp, const SSL_SESSION *ses); | 1656 | int SSL_SESSION_print(BIO *fp, const SSL_SESSION *ses); |
| 1659 | #endif | 1657 | #endif |
diff --git a/src/lib/libssl/ssl_txt.c b/src/lib/libssl/ssl_txt.c index 734e0c0755..43696db847 100644 --- a/src/lib/libssl/ssl_txt.c +++ b/src/lib/libssl/ssl_txt.c | |||
| @@ -86,7 +86,6 @@ | |||
| 86 | #include <openssl/buffer.h> | 86 | #include <openssl/buffer.h> |
| 87 | #include "ssl_locl.h" | 87 | #include "ssl_locl.h" |
| 88 | 88 | ||
| 89 | #ifndef OPENSSL_NO_FP_API | ||
| 90 | int | 89 | int |
| 91 | SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *x) | 90 | SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *x) |
| 92 | { | 91 | { |
| @@ -102,7 +101,6 @@ SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *x) | |||
| 102 | BIO_free(b); | 101 | BIO_free(b); |
| 103 | return (ret); | 102 | return (ret); |
| 104 | } | 103 | } |
| 105 | #endif | ||
| 106 | 104 | ||
| 107 | int | 105 | int |
| 108 | SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) | 106 | SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) |
