summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbeck <>2014-05-29 20:21:23 +0000
committerbeck <>2014-05-29 20:21:23 +0000
commitd205a2aecb99564cccfbea61c39ebe3b0ddd7fb7 (patch)
tree0085ebdac711a18932d8d8d531d36f82fce2c8bc
parent6f22007e67d4c2d77b9caea83bc05974d11dbb0d (diff)
downloadopenbsd-d205a2aecb99564cccfbea61c39ebe3b0ddd7fb7.tar.gz
openbsd-d205a2aecb99564cccfbea61c39ebe3b0ddd7fb7.tar.bz2
openbsd-d205a2aecb99564cccfbea61c39ebe3b0ddd7fb7.zip
Everything sane has stdio, and FILE *. we don't need ifdefs for this.
ok to firebomb from tedu@
-rw-r--r--src/lib/libcrypto/asn1/a_d2i_fp.c4
-rw-r--r--src/lib/libcrypto/asn1/a_i2d_fp.c4
-rw-r--r--src/lib/libcrypto/asn1/a_strex.c4
-rw-r--r--src/lib/libcrypto/asn1/asn1.h2
-rw-r--r--src/lib/libcrypto/asn1/t_crl.c2
-rw-r--r--src/lib/libcrypto/asn1/t_req.c2
-rw-r--r--src/lib/libcrypto/asn1/t_x509.c2
-rw-r--r--src/lib/libcrypto/bio/b_dump.c2
-rw-r--r--src/lib/libcrypto/bio/bio.h6
-rw-r--r--src/lib/libcrypto/bn/bn.h4
-rw-r--r--src/lib/libcrypto/bn/bn_print.c2
-rw-r--r--src/lib/libcrypto/conf/conf.h4
-rw-r--r--src/lib/libcrypto/conf/conf_lib.c8
-rw-r--r--src/lib/libcrypto/crypto.h4
-rw-r--r--src/lib/libcrypto/dh/dh.h2
-rw-r--r--src/lib/libcrypto/dh/dh_prn.c2
-rw-r--r--src/lib/libcrypto/dsa/dsa.h2
-rw-r--r--src/lib/libcrypto/dsa/dsa_prn.c2
-rw-r--r--src/lib/libcrypto/ec/ec.h4
-rw-r--r--src/lib/libcrypto/ec/eck_prn.c2
-rw-r--r--src/lib/libcrypto/err/err.h4
-rw-r--r--src/lib/libcrypto/err/err_prn.c2
-rw-r--r--src/lib/libcrypto/lhash/lh_stats.c2
-rw-r--r--src/lib/libcrypto/lhash/lhash.h4
-rw-r--r--src/lib/libcrypto/mem_dbg.c2
-rw-r--r--src/lib/libcrypto/pem/pem.h18
-rw-r--r--src/lib/libcrypto/pem/pem_all.c6
-rw-r--r--src/lib/libcrypto/pem/pem_info.c2
-rw-r--r--src/lib/libcrypto/pem/pem_lib.c15
-rw-r--r--src/lib/libcrypto/pem/pem_pk8.c2
-rw-r--r--src/lib/libcrypto/pem/pem_pkey.c2
-rw-r--r--src/lib/libcrypto/pkcs12/p12_utl.c4
-rw-r--r--src/lib/libcrypto/pkcs7/pkcs7.h2
-rw-r--r--src/lib/libcrypto/rsa/rsa.h2
-rw-r--r--src/lib/libcrypto/rsa/rsa_prn.c2
-rw-r--r--src/lib/libcrypto/ts/ts_asn1.c8
-rw-r--r--src/lib/libcrypto/x509/x509.h4
-rw-r--r--src/lib/libcrypto/x509/x_all.c18
-rw-r--r--src/lib/libcrypto/x509v3/v3_prn.c2
-rw-r--r--src/lib/libssl/src/crypto/asn1/a_d2i_fp.c4
-rw-r--r--src/lib/libssl/src/crypto/asn1/a_i2d_fp.c4
-rw-r--r--src/lib/libssl/src/crypto/asn1/a_strex.c4
-rw-r--r--src/lib/libssl/src/crypto/asn1/asn1.h2
-rw-r--r--src/lib/libssl/src/crypto/asn1/t_crl.c2
-rw-r--r--src/lib/libssl/src/crypto/asn1/t_req.c2
-rw-r--r--src/lib/libssl/src/crypto/asn1/t_x509.c2
-rw-r--r--src/lib/libssl/src/crypto/bio/b_dump.c2
-rw-r--r--src/lib/libssl/src/crypto/bio/bio.h6
-rw-r--r--src/lib/libssl/src/crypto/bn/bn.h4
-rw-r--r--src/lib/libssl/src/crypto/bn/bn_print.c2
-rw-r--r--src/lib/libssl/src/crypto/conf/conf.h4
-rw-r--r--src/lib/libssl/src/crypto/conf/conf_lib.c8
-rw-r--r--src/lib/libssl/src/crypto/crypto.h4
-rw-r--r--src/lib/libssl/src/crypto/dh/dh.h2
-rw-r--r--src/lib/libssl/src/crypto/dh/dh_prn.c2
-rw-r--r--src/lib/libssl/src/crypto/dsa/dsa.h2
-rw-r--r--src/lib/libssl/src/crypto/dsa/dsa_prn.c2
-rw-r--r--src/lib/libssl/src/crypto/ec/ec.h4
-rw-r--r--src/lib/libssl/src/crypto/ec/eck_prn.c2
-rw-r--r--src/lib/libssl/src/crypto/err/err.h4
-rw-r--r--src/lib/libssl/src/crypto/err/err_prn.c2
-rw-r--r--src/lib/libssl/src/crypto/lhash/lh_stats.c2
-rw-r--r--src/lib/libssl/src/crypto/lhash/lhash.h4
-rw-r--r--src/lib/libssl/src/crypto/mem_dbg.c2
-rw-r--r--src/lib/libssl/src/crypto/pem/pem.h18
-rw-r--r--src/lib/libssl/src/crypto/pem/pem_all.c6
-rw-r--r--src/lib/libssl/src/crypto/pem/pem_info.c2
-rw-r--r--src/lib/libssl/src/crypto/pem/pem_lib.c15
-rw-r--r--src/lib/libssl/src/crypto/pem/pem_pk8.c2
-rw-r--r--src/lib/libssl/src/crypto/pem/pem_pkey.c2
-rw-r--r--src/lib/libssl/src/crypto/pkcs12/p12_utl.c4
-rw-r--r--src/lib/libssl/src/crypto/pkcs7/pkcs7.h2
-rw-r--r--src/lib/libssl/src/crypto/rsa/rsa.h2
-rw-r--r--src/lib/libssl/src/crypto/rsa/rsa_prn.c2
-rw-r--r--src/lib/libssl/src/crypto/ts/ts_asn1.c8
-rw-r--r--src/lib/libssl/src/crypto/x509/x509.h4
-rw-r--r--src/lib/libssl/src/crypto/x509/x_all.c18
-rw-r--r--src/lib/libssl/src/crypto/x509v3/v3_prn.c2
-rw-r--r--src/lib/libssl/src/ssl/ssl.h2
-rw-r--r--src/lib/libssl/src/ssl/ssl_txt.c2
-rw-r--r--src/lib/libssl/ssl.h2
-rw-r--r--src/lib/libssl/ssl_txt.c2
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 @@
65static int asn1_d2i_read_bio(BIO *in, BUF_MEM **pb); 65static 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
70void * 69void *
71ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x) 70ASN1_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
87void * 85void *
88ASN1_d2i_bio(void *(*xnew)(void), d2i_of_void *d2i, BIO *in, void **x) 86ASN1_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
132void * 129void *
133ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x) 130ASN1_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
150static int 146static 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
67int 66int
68ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x) 67ASN1_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
84int 82int
85ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x) 83ASN1_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
119int 116int
120ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x) 117ASN1_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
136int 132int
137ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, void *x) 133ASN1_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
605int 604int
606X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags) 605X509_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
622int 620int
623ASN1_STRING_print_ex(BIO *out, ASN1_STRING *str, unsigned long flags) 621ASN1_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
629int 626int
630ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags) 627ASN1_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
935void *ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x); 934void *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
956int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x); 955int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x);
957int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags); 956int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags);
958#endif
959 957
960int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in); 958int 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
68int 67int
69X509_CRL_print_fp(FILE *fp, X509_CRL *x) 68X509_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
85int 83int
86X509_CRL_print(BIO *out, X509_CRL *x) 84X509_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
74int 73int
75X509_REQ_print_fp(FILE *fp, X509_REQ *x) 74X509_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
91int 89int
92X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags, 90X509_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
78int 77int
79X509_print_fp(FILE *fp, X509 *x) 78X509_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
101int 99int
102X509_print(BIO *bp, X509 *x) 100X509_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
151static int 150static int
152write_fp(const void *data, size_t len, void *fp) 151write_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
170static int 168static int
171write_bio(const void *data, size_t len, void *bp) 169write_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
619BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix, 617BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix,
620asn1_ps_func **psuffix_free); 618asn1_ps_func **psuffix_free);
621 619
622# ifndef OPENSSL_NO_FP_API
623BIO_METHOD *BIO_s_file(void ); 620BIO_METHOD *BIO_s_file(void );
624BIO *BIO_new_file(const char *filename, const char *mode); 621BIO *BIO_new_file(const char *filename, const char *mode);
625BIO *BIO_new_fp(FILE *stream, int close_flag); 622BIO *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
628BIO * BIO_new(BIO_METHOD *type); 624BIO * BIO_new(BIO_METHOD *type);
629int BIO_set(BIO *a, BIO_METHOD *type); 625int BIO_set(BIO *a, BIO_METHOD *type);
630int BIO_free(BIO *a); 626int BIO_free(BIO *a);
@@ -694,10 +690,8 @@ BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u),
694void *u, const char *s, int len, int indent); 690void *u, const char *s, int len, int indent);
695int BIO_dump(BIO *b, const char *bytes, int len); 691int BIO_dump(BIO *b, const char *bytes, int len);
696int BIO_dump_indent(BIO *b, const char *bytes, int len, int indent); 692int BIO_dump_indent(BIO *b, const char *bytes, int len, int indent);
697#ifndef OPENSSL_NO_FP_API
698int BIO_dump_fp(FILE *fp, const char *s, int len); 693int BIO_dump_fp(FILE *fp, const char *s, int len);
699int BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent); 694int BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent);
700#endif
701struct hostent *BIO_gethostbyname(const char *name); 695struct 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
444int BN_mask_bits(BIGNUM *a, int n); 442int BN_mask_bits(BIGNUM *a, int n);
445#ifndef OPENSSL_NO_FP_API
446int BN_print_fp(FILE *fp, const BIGNUM *a); 443int BN_print_fp(FILE *fp, const BIGNUM *a);
447#endif
448#ifdef HEADER_BIO_H 444#ifdef HEADER_BIO_H
449int BN_print(BIO *fp, const BIGNUM *a); 445int 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
332int 331int
333BN_print_fp(FILE *fp, const BIGNUM *a) 332BN_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
347int 345int
348BN_print(BIO *bp, const BIGNUM *a) 346BN_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);
121void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash); 121void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash);
122LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file, 122LHASH_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
125LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, 124LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp,
126 long *eline); 125 long *eline);
127#endif
128LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, long *eline); 126LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, long *eline);
129STACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf, 127STACK_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);
158void NCONF_free_data(CONF *conf); 156void NCONF_free_data(CONF *conf);
159 157
160int NCONF_load(CONF *conf, const char *file, long *eline); 158int NCONF_load(CONF *conf, const char *file, long *eline);
161#ifndef OPENSSL_NO_FP_API
162int NCONF_load_fp(CONF *conf, FILE *fp, long *eline); 159int NCONF_load_fp(CONF *conf, FILE *fp, long *eline);
163#endif
164int NCONF_load_bio(CONF *conf, BIO *bp, long *eline); 160int NCONF_load_bio(CONF *conf, BIO *bp, long *eline);
165STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, const char *section); 161STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, const char *section);
166char *NCONF_get_string(const CONF *conf, const char *group, const char *name); 162char *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
110LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, 109LHASH_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
126LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, 124LHASH_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
197int 194int
198CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out) 195CONF_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
213int 209int
214CONF_dump_bio(LHASH_OF(CONF_VALUE) *conf, BIO *out) 210CONF_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
273int 268int
274NCONF_load_fp(CONF *conf, FILE *fp, long *eline) 269NCONF_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
289int 283int
290NCONF_load_bio(CONF *conf, BIO *bp, long *eline) 284NCONF_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
361int 354int
362NCONF_dump_fp(const CONF *conf, FILE *out) 355NCONF_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
376int 368int
377NCONF_dump_bio(const CONF *conf, BIO *out) 369NCONF_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);
516long CRYPTO_dbg_get_options(void); 514long CRYPTO_dbg_get_options(void);
517 515
518 516
519#ifndef OPENSSL_NO_FP_API
520void CRYPTO_mem_leaks_fp(FILE *); 517void CRYPTO_mem_leaks_fp(FILE *);
521#endif
522void CRYPTO_mem_leaks(struct bio_st *bio); 518void 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 */
524typedef void *CRYPTO_MEM_LEAK_CB(unsigned long, const char *, int, int, void *); 520typedef 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);
212int DH_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh); 212int DH_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh);
213DH * d2i_DHparams(DH **a,const unsigned char **pp, long length); 213DH * d2i_DHparams(DH **a,const unsigned char **pp, long length);
214int i2d_DHparams(const DH *a,unsigned char **pp); 214int i2d_DHparams(const DH *a,unsigned char **pp);
215#ifndef OPENSSL_NO_FP_API
216int DHparams_print_fp(FILE *fp, const DH *x); 215int DHparams_print_fp(FILE *fp, const DH *x);
217#endif
218#ifndef OPENSSL_NO_BIO 216#ifndef OPENSSL_NO_BIO
219int DHparams_print(BIO *bp, const DH *x); 217int 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
65int DHparams_print_fp(FILE *fp, const DH *x) 64int 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);
247int DSAparams_print(BIO *bp, const DSA *x); 247int DSAparams_print(BIO *bp, const DSA *x);
248int DSA_print(BIO *bp, const DSA *x, int off); 248int DSA_print(BIO *bp, const DSA *x, int off);
249#endif 249#endif
250#ifndef OPENSSL_NO_FP_API
251int DSAparams_print_fp(FILE *fp, const DSA *x); 250int DSAparams_print_fp(FILE *fp, const DSA *x);
252int DSA_print_fp(FILE *bp, const DSA *x, int off); 251int 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
65int DSA_print_fp(FILE *fp, const DSA *x, int off) 64int 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
98int DSA_print(BIO *bp, const DSA *x, int off) 96int 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
696int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off); 696int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off);
697#endif 697#endif
698#ifndef OPENSSL_NO_FP_API
699int ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off); 698int 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);
930int EC_KEY_print(BIO *bp, const EC_KEY *key, int off); 928int 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 */
947int EC_KEY_print_fp(FILE *fp, const EC_KEY *key, int off); 944int 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
71int 70int
72ECPKParameters_print_fp(FILE * fp, const EC_GROUP * x, int off) 71ECPKParameters_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
120int 118int
121EC_KEY_print(BIO * bp, const EC_KEY * x, int off) 119EC_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);
337const char *ERR_reason_error_string(unsigned long e); 335const char *ERR_reason_error_string(unsigned long e);
338void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u), 336void 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
341void ERR_print_errors_fp(FILE *fp); 338void ERR_print_errors_fp(FILE *fp);
342#endif
343#ifndef OPENSSL_NO_BIO 339#ifndef OPENSSL_NO_BIO
344void ERR_print_errors(BIO *bp); 340void 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
90static int 89static int
91print_fp(const char *str, size_t len, void *fp) 90print_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
108static int 106static int
109print_bio(const char *str, size_t len, void *bp) 107print_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
144void 143void
145lh_stats(const _LHASH *lh, FILE *fp) 144lh_stats(const _LHASH *lh, FILE *fp)
146{ 145{
@@ -183,7 +182,6 @@ lh_node_usage_stats(const _LHASH *lh, FILE *fp)
183end:; 182end:;
184} 183}
185 184
186#endif
187 185
188void 186void
189lh_stats_bio(const _LHASH *lh, BIO *out) 187lh_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);
181unsigned long lh_strhash(const char *c); 179unsigned long lh_strhash(const char *c);
182unsigned long lh_num_items(const _LHASH *lh); 180unsigned long lh_num_items(const _LHASH *lh);
183 181
184#ifndef OPENSSL_NO_FP_API
185void lh_stats(const _LHASH *lh, FILE *out); 182void lh_stats(const _LHASH *lh, FILE *out);
186void lh_node_stats(const _LHASH *lh, FILE *out); 183void lh_node_stats(const _LHASH *lh, FILE *out);
187void lh_node_usage_stats(const _LHASH *lh, FILE *out); 184void lh_node_usage_stats(const _LHASH *lh, FILE *out);
188#endif
189 185
190#ifndef OPENSSL_NO_BIO 186#ifndef OPENSSL_NO_BIO
191void lh_stats_bio(const _LHASH *lh, BIO *out); 187void 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
191void 190void
192CRYPTO_mem_leaks_fp(FILE *fp) 191CRYPTO_mem_leaks_fp(FILE *fp)
193{ 192{
194 return; 193 return;
195} 194}
196#endif
197 195
198 196
199void 197void
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) \
220type *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u)\ 211type *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) \
256type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u)\ 246type *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
191RSA * 190RSA *
192PEM_read_RSAPrivateKey(FILE *fp, RSA **rsa, pem_password_cb *cb, void *u) 191PEM_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
202IMPLEMENT_PEM_write_cb_const(RSAPrivateKey, RSA, PEM_STRING_RSA, RSAPrivateKey) 200IMPLEMENT_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
240IMPLEMENT_PEM_rw(DSA_PUBKEY, DSA, PEM_STRING_PUBLIC, DSA_PUBKEY) 238IMPLEMENT_PEM_rw(DSA_PUBKEY, DSA, PEM_STRING_PUBLIC, DSA_PUBKEY)
241 239
242#ifndef OPENSSL_NO_FP_API
243 240
244DSA * 241DSA *
245PEM_read_DSAPrivateKey(FILE *fp, DSA **dsa, pem_password_cb *cb, void *u) 242PEM_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
255IMPLEMENT_PEM_rw_const(DSAparams, DSA, PEM_STRING_DSAPARAMS, DSAparams) 251IMPLEMENT_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
293IMPLEMENT_PEM_rw(EC_PUBKEY, EC_KEY, PEM_STRING_PUBLIC, EC_PUBKEY) 289IMPLEMENT_PEM_rw(EC_PUBKEY, EC_KEY, PEM_STRING_PUBLIC, EC_PUBKEY)
294 290
295#ifndef OPENSSL_NO_FP_API
296 291
297EC_KEY * 292EC_KEY *
298PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, void *u) 293PEM_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
74STACK_OF(X509_INFO) * 73STACK_OF(X509_INFO) *
75PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb, 74PEM_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
92STACK_OF(X509_INFO) * 90STACK_OF(X509_INFO) *
93PEM_X509_INFO_read_bio(BIO *bp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb, 91PEM_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);
85int 85int
86PEM_def_callback(char *buf, int num, int w, void *key) 86PEM_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
126void 119void
@@ -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
167void * 159void *
168PEM_ASN1_read(d2i_of_void *d2i, const char *name, FILE *fp, void **x, 160PEM_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
185static int 176static int
186check_pem(const char *nm, const char *name) 177check_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
324int 314int
325PEM_ASN1_write(i2d_of_void *i2d, const char *name, FILE *fp, void *x, 315PEM_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
343int 332int
344PEM_ASN1_write_bio(i2d_of_void *i2d, const char *name, BIO *bp, void *x, 333PEM_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
580int 568int
581PEM_write(FILE *fp, char *name, char *header, unsigned char *data, long len) 569PEM_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
597int 584int
598PEM_write_bio(BIO *bp, const char *name, char *header, unsigned char *data, 585PEM_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
659int 645int
660PEM_read(FILE *fp, char **name, char **header, unsigned char **data, long *len) 646PEM_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
676int 661int
677PEM_read_bio(BIO *bp, char **name, char **header, unsigned char **data, 662PEM_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
195int 194int
196i2d_PKCS8PrivateKey_fp(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc, 195i2d_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
256IMPLEMENT_PEM_rw(PKCS8, X509_SIG, PEM_STRING_PKCS8, X509_SIG) 254IMPLEMENT_PEM_rw(PKCS8, X509_SIG, PEM_STRING_PKCS8, X509_SIG)
257IMPLEMENT_PEM_rw(PKCS8_PRIV_KEY_INFO, PKCS8_PRIV_KEY_INFO, PEM_STRING_PKCS8INF, 255IMPLEMENT_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
221EVP_PKEY * 220EVP_PKEY *
222PEM_read_PrivateKey(FILE *fp, EVP_PKEY **x, pem_password_cb *cb, void *u) 221PEM_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
104int i2d_PKCS12_fp(FILE *fp, PKCS12 *p12) 103int 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
110PKCS12 *d2i_PKCS12_bio(BIO *bp, PKCS12 **p12) 108PKCS12 *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
115PKCS12 *d2i_PKCS12_fp(FILE *fp, PKCS12 **p12) 112PKCS12 *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
121PKCS12_SAFEBAG *PKCS12_x5092certbag(X509 *x509) 117PKCS12_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
274int PKCS7_ISSUER_AND_SERIAL_digest(PKCS7_ISSUER_AND_SERIAL *data,const EVP_MD *type, 274int 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
277PKCS7 *d2i_PKCS7_fp(FILE *fp,PKCS7 **p7); 276PKCS7 *d2i_PKCS7_fp(FILE *fp,PKCS7 **p7);
278int i2d_PKCS7_fp(FILE *fp,PKCS7 *p7); 277int i2d_PKCS7_fp(FILE *fp,PKCS7 *p7);
279#endif
280PKCS7 *PKCS7_dup(PKCS7 *p7); 278PKCS7 *PKCS7_dup(PKCS7 *p7);
281PKCS7 *d2i_PKCS7_bio(BIO *bp,PKCS7 **p7); 279PKCS7 *d2i_PKCS7_bio(BIO *bp,PKCS7 **p7);
282int i2d_PKCS7_bio(BIO *bp,PKCS7 *p7); 280int 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
334DECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS) 334DECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS)
335 335
336#ifndef OPENSSL_NO_FP_API
337int RSA_print_fp(FILE *fp, const RSA *r,int offset); 336int RSA_print_fp(FILE *fp, const RSA *r,int offset);
338#endif
339 337
340#ifndef OPENSSL_NO_BIO 338#ifndef OPENSSL_NO_BIO
341int RSA_print(BIO *bp, const RSA *r,int offset); 339int 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
65int RSA_print_fp(FILE *fp, const RSA *x, int off) 64int 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
82int RSA_print(BIO *bp, const RSA *x, int off) 80int 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
86TS_MSG_IMPRINT * 85TS_MSG_IMPRINT *
87d2i_TS_MSG_IMPRINT_fp(FILE *fp, TS_MSG_IMPRINT **a) 86d2i_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
100ASN1_SEQUENCE(TS_REQ) = { 98ASN1_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
127TS_REQ * 124TS_REQ *
128d2i_TS_REQ_fp(FILE *fp, TS_REQ **a) 125d2i_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
140ASN1_SEQUENCE(TS_ACCURACY) = { 136ASN1_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
181TS_TST_INFO * 176TS_TST_INFO *
182d2i_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO **a) 177d2i_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
195ASN1_SEQUENCE(TS_STATUS_INFO) = { 189ASN1_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
272TS_RESP * 265TS_RESP *
273d2i_TS_RESP_fp(FILE *fp, TS_RESP **a) 266d2i_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
285ASN1_SEQUENCE(ESS_ISSUER_SERIAL) = { 277ASN1_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
677X509 *d2i_X509_fp(FILE *fp, X509 **x509); 676X509 *d2i_X509_fp(FILE *fp, X509 **x509);
678int i2d_X509_fp(FILE *fp,X509 *x509); 677int i2d_X509_fp(FILE *fp,X509 *x509);
679X509_CRL *d2i_X509_CRL_fp(FILE *fp,X509_CRL **crl); 678X509_CRL *d2i_X509_CRL_fp(FILE *fp,X509_CRL **crl);
@@ -709,7 +708,6 @@ int i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey);
709EVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a); 708EVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a);
710int i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey); 709int i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey);
711EVP_PKEY *d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a); 710EVP_PKEY *d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a);
712#endif
713 711
714#ifndef OPENSSL_NO_BIO 712#ifndef OPENSSL_NO_BIO
715X509 *d2i_X509_bio(BIO *bp,X509 **x509); 713X509 *d2i_X509_bio(BIO *bp,X509 **x509);
@@ -965,13 +963,11 @@ unsigned long X509_NAME_hash_old(X509_NAME *x);
965 963
966int X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b); 964int X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b);
967int X509_CRL_match(const X509_CRL *a, const X509_CRL *b); 965int X509_CRL_match(const X509_CRL *a, const X509_CRL *b);
968#ifndef OPENSSL_NO_FP_API
969int X509_print_ex_fp(FILE *bp,X509 *x, unsigned long nmflag, unsigned long cflag); 966int X509_print_ex_fp(FILE *bp,X509 *x, unsigned long nmflag, unsigned long cflag);
970int X509_print_fp(FILE *bp,X509 *x); 967int X509_print_fp(FILE *bp,X509 *x);
971int X509_CRL_print_fp(FILE *bp,X509_CRL *x); 968int X509_CRL_print_fp(FILE *bp,X509_CRL *x);
972int X509_REQ_print_fp(FILE *bp,X509_REQ *req); 969int X509_REQ_print_fp(FILE *bp,X509_REQ *req);
973int X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags); 970int 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
977int X509_NAME_print(BIO *bp, X509_NAME *name, int obase); 973int 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
150X509 * 149X509 *
151d2i_X509_fp(FILE *fp, X509 **x509) 150d2i_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
163X509 * 161X509 *
164d2i_X509_bio(BIO *bp, X509 **x509) 162d2i_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
176X509_CRL * 173X509_CRL *
177d2i_X509_CRL_fp(FILE *fp, X509_CRL **crl) 174d2i_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
189X509_CRL * 185X509_CRL *
190d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl) 186d2i_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
202PKCS7 * 197PKCS7 *
203d2i_PKCS7_fp(FILE *fp, PKCS7 **p7) 198d2i_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
215PKCS7 * 209PKCS7 *
216d2i_PKCS7_bio(BIO *bp, PKCS7 **p7) 210d2i_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
228X509_REQ * 221X509_REQ *
229d2i_X509_REQ_fp(FILE *fp, X509_REQ **req) 222d2i_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
241X509_REQ * 233X509_REQ *
242d2i_X509_REQ_bio(BIO *bp, X509_REQ **req) 234d2i_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
256RSA * 247RSA *
257d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa) 248d2i_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
295RSA * 285RSA *
296d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa) 286d2i_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
335DSA * 324DSA *
336d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa) 325d2i_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
360DSA * 348DSA *
361d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa) 349d2i_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
388EC_KEY * 375EC_KEY *
389d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey) 376d2i_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
412EC_KEY * 398EC_KEY *
413d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey) 399d2i_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
491X509_SIG * 476X509_SIG *
492d2i_PKCS8_fp(FILE *fp, X509_SIG **p8) 477d2i_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
504X509_SIG * 488X509_SIG *
505d2i_PKCS8_bio(BIO *bp, X509_SIG **p8) 489d2i_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
517PKCS8_PRIV_KEY_INFO * 500PKCS8_PRIV_KEY_INFO *
518d2i_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO **p8inf) 501d2i_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
571PKCS8_PRIV_KEY_INFO * 553PKCS8_PRIV_KEY_INFO *
572d2i_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, PKCS8_PRIV_KEY_INFO **p8inf) 554d2i_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
216int 215int
217X509V3_EXT_print_fp(FILE *fp, X509_EXTENSION *ext, int flag, int indent) 216X509V3_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 @@
65static int asn1_d2i_read_bio(BIO *in, BUF_MEM **pb); 65static 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
70void * 69void *
71ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x) 70ASN1_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
87void * 85void *
88ASN1_d2i_bio(void *(*xnew)(void), d2i_of_void *d2i, BIO *in, void **x) 86ASN1_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
132void * 129void *
133ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x) 130ASN1_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
150static int 146static 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
67int 66int
68ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x) 67ASN1_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
84int 82int
85ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x) 83ASN1_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
119int 116int
120ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x) 117ASN1_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
136int 132int
137ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, void *x) 133ASN1_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
605int 604int
606X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags) 605X509_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
622int 620int
623ASN1_STRING_print_ex(BIO *out, ASN1_STRING *str, unsigned long flags) 621ASN1_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
629int 626int
630ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags) 627ASN1_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
935void *ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x); 934void *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
956int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x); 955int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x);
957int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags); 956int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags);
958#endif
959 957
960int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in); 958int 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
68int 67int
69X509_CRL_print_fp(FILE *fp, X509_CRL *x) 68X509_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
85int 83int
86X509_CRL_print(BIO *out, X509_CRL *x) 84X509_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
74int 73int
75X509_REQ_print_fp(FILE *fp, X509_REQ *x) 74X509_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
91int 89int
92X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags, 90X509_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
78int 77int
79X509_print_fp(FILE *fp, X509 *x) 78X509_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
101int 99int
102X509_print(BIO *bp, X509 *x) 100X509_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
151static int 150static int
152write_fp(const void *data, size_t len, void *fp) 151write_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
170static int 168static int
171write_bio(const void *data, size_t len, void *bp) 169write_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
619BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix, 617BIO_asn1_get_suffix(BIO *b, asn1_ps_func **psuffix,
620asn1_ps_func **psuffix_free); 618asn1_ps_func **psuffix_free);
621 619
622# ifndef OPENSSL_NO_FP_API
623BIO_METHOD *BIO_s_file(void ); 620BIO_METHOD *BIO_s_file(void );
624BIO *BIO_new_file(const char *filename, const char *mode); 621BIO *BIO_new_file(const char *filename, const char *mode);
625BIO *BIO_new_fp(FILE *stream, int close_flag); 622BIO *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
628BIO * BIO_new(BIO_METHOD *type); 624BIO * BIO_new(BIO_METHOD *type);
629int BIO_set(BIO *a, BIO_METHOD *type); 625int BIO_set(BIO *a, BIO_METHOD *type);
630int BIO_free(BIO *a); 626int BIO_free(BIO *a);
@@ -694,10 +690,8 @@ BIO_dump_indent_cb(int (*cb)(const void *data, size_t len, void *u),
694void *u, const char *s, int len, int indent); 690void *u, const char *s, int len, int indent);
695int BIO_dump(BIO *b, const char *bytes, int len); 691int BIO_dump(BIO *b, const char *bytes, int len);
696int BIO_dump_indent(BIO *b, const char *bytes, int len, int indent); 692int BIO_dump_indent(BIO *b, const char *bytes, int len, int indent);
697#ifndef OPENSSL_NO_FP_API
698int BIO_dump_fp(FILE *fp, const char *s, int len); 693int BIO_dump_fp(FILE *fp, const char *s, int len);
699int BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent); 694int BIO_dump_indent_fp(FILE *fp, const char *s, int len, int indent);
700#endif
701struct hostent *BIO_gethostbyname(const char *name); 695struct 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
444int BN_mask_bits(BIGNUM *a, int n); 442int BN_mask_bits(BIGNUM *a, int n);
445#ifndef OPENSSL_NO_FP_API
446int BN_print_fp(FILE *fp, const BIGNUM *a); 443int BN_print_fp(FILE *fp, const BIGNUM *a);
447#endif
448#ifdef HEADER_BIO_H 444#ifdef HEADER_BIO_H
449int BN_print(BIO *fp, const BIGNUM *a); 445int 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
332int 331int
333BN_print_fp(FILE *fp, const BIGNUM *a) 332BN_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
347int 345int
348BN_print(BIO *bp, const BIGNUM *a) 346BN_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);
121void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash); 121void CONF_set_nconf(CONF *conf, LHASH_OF(CONF_VALUE) *hash);
122LHASH_OF(CONF_VALUE) *CONF_load(LHASH_OF(CONF_VALUE) *conf, const char *file, 122LHASH_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
125LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, 124LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp,
126 long *eline); 125 long *eline);
127#endif
128LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, long *eline); 126LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, long *eline);
129STACK_OF(CONF_VALUE) *CONF_get_section(LHASH_OF(CONF_VALUE) *conf, 127STACK_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);
158void NCONF_free_data(CONF *conf); 156void NCONF_free_data(CONF *conf);
159 157
160int NCONF_load(CONF *conf, const char *file, long *eline); 158int NCONF_load(CONF *conf, const char *file, long *eline);
161#ifndef OPENSSL_NO_FP_API
162int NCONF_load_fp(CONF *conf, FILE *fp, long *eline); 159int NCONF_load_fp(CONF *conf, FILE *fp, long *eline);
163#endif
164int NCONF_load_bio(CONF *conf, BIO *bp, long *eline); 160int NCONF_load_bio(CONF *conf, BIO *bp, long *eline);
165STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, const char *section); 161STACK_OF(CONF_VALUE) *NCONF_get_section(const CONF *conf, const char *section);
166char *NCONF_get_string(const CONF *conf, const char *group, const char *name); 162char *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
110LHASH_OF(CONF_VALUE) *CONF_load_fp(LHASH_OF(CONF_VALUE) *conf, FILE *fp, 109LHASH_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
126LHASH_OF(CONF_VALUE) *CONF_load_bio(LHASH_OF(CONF_VALUE) *conf, BIO *bp, 124LHASH_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
197int 194int
198CONF_dump_fp(LHASH_OF(CONF_VALUE) *conf, FILE *out) 195CONF_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
213int 209int
214CONF_dump_bio(LHASH_OF(CONF_VALUE) *conf, BIO *out) 210CONF_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
273int 268int
274NCONF_load_fp(CONF *conf, FILE *fp, long *eline) 269NCONF_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
289int 283int
290NCONF_load_bio(CONF *conf, BIO *bp, long *eline) 284NCONF_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
361int 354int
362NCONF_dump_fp(const CONF *conf, FILE *out) 355NCONF_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
376int 368int
377NCONF_dump_bio(const CONF *conf, BIO *out) 369NCONF_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);
516long CRYPTO_dbg_get_options(void); 514long CRYPTO_dbg_get_options(void);
517 515
518 516
519#ifndef OPENSSL_NO_FP_API
520void CRYPTO_mem_leaks_fp(FILE *); 517void CRYPTO_mem_leaks_fp(FILE *);
521#endif
522void CRYPTO_mem_leaks(struct bio_st *bio); 518void 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 */
524typedef void *CRYPTO_MEM_LEAK_CB(unsigned long, const char *, int, int, void *); 520typedef 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);
212int DH_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh); 212int DH_compute_key(unsigned char *key,const BIGNUM *pub_key,DH *dh);
213DH * d2i_DHparams(DH **a,const unsigned char **pp, long length); 213DH * d2i_DHparams(DH **a,const unsigned char **pp, long length);
214int i2d_DHparams(const DH *a,unsigned char **pp); 214int i2d_DHparams(const DH *a,unsigned char **pp);
215#ifndef OPENSSL_NO_FP_API
216int DHparams_print_fp(FILE *fp, const DH *x); 215int DHparams_print_fp(FILE *fp, const DH *x);
217#endif
218#ifndef OPENSSL_NO_BIO 216#ifndef OPENSSL_NO_BIO
219int DHparams_print(BIO *bp, const DH *x); 217int 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
65int DHparams_print_fp(FILE *fp, const DH *x) 64int 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);
247int DSAparams_print(BIO *bp, const DSA *x); 247int DSAparams_print(BIO *bp, const DSA *x);
248int DSA_print(BIO *bp, const DSA *x, int off); 248int DSA_print(BIO *bp, const DSA *x, int off);
249#endif 249#endif
250#ifndef OPENSSL_NO_FP_API
251int DSAparams_print_fp(FILE *fp, const DSA *x); 250int DSAparams_print_fp(FILE *fp, const DSA *x);
252int DSA_print_fp(FILE *bp, const DSA *x, int off); 251int 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
65int DSA_print_fp(FILE *fp, const DSA *x, int off) 64int 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
98int DSA_print(BIO *bp, const DSA *x, int off) 96int 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
696int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off); 696int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off);
697#endif 697#endif
698#ifndef OPENSSL_NO_FP_API
699int ECPKParameters_print_fp(FILE *fp, const EC_GROUP *x, int off); 698int 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);
930int EC_KEY_print(BIO *bp, const EC_KEY *key, int off); 928int 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 */
947int EC_KEY_print_fp(FILE *fp, const EC_KEY *key, int off); 944int 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
71int 70int
72ECPKParameters_print_fp(FILE * fp, const EC_GROUP * x, int off) 71ECPKParameters_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
120int 118int
121EC_KEY_print(BIO * bp, const EC_KEY * x, int off) 119EC_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);
337const char *ERR_reason_error_string(unsigned long e); 335const char *ERR_reason_error_string(unsigned long e);
338void ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u), 336void 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
341void ERR_print_errors_fp(FILE *fp); 338void ERR_print_errors_fp(FILE *fp);
342#endif
343#ifndef OPENSSL_NO_BIO 339#ifndef OPENSSL_NO_BIO
344void ERR_print_errors(BIO *bp); 340void 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
90static int 89static int
91print_fp(const char *str, size_t len, void *fp) 90print_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
108static int 106static int
109print_bio(const char *str, size_t len, void *bp) 107print_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
144void 143void
145lh_stats(const _LHASH *lh, FILE *fp) 144lh_stats(const _LHASH *lh, FILE *fp)
146{ 145{
@@ -183,7 +182,6 @@ lh_node_usage_stats(const _LHASH *lh, FILE *fp)
183end:; 182end:;
184} 183}
185 184
186#endif
187 185
188void 186void
189lh_stats_bio(const _LHASH *lh, BIO *out) 187lh_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);
181unsigned long lh_strhash(const char *c); 179unsigned long lh_strhash(const char *c);
182unsigned long lh_num_items(const _LHASH *lh); 180unsigned long lh_num_items(const _LHASH *lh);
183 181
184#ifndef OPENSSL_NO_FP_API
185void lh_stats(const _LHASH *lh, FILE *out); 182void lh_stats(const _LHASH *lh, FILE *out);
186void lh_node_stats(const _LHASH *lh, FILE *out); 183void lh_node_stats(const _LHASH *lh, FILE *out);
187void lh_node_usage_stats(const _LHASH *lh, FILE *out); 184void lh_node_usage_stats(const _LHASH *lh, FILE *out);
188#endif
189 185
190#ifndef OPENSSL_NO_BIO 186#ifndef OPENSSL_NO_BIO
191void lh_stats_bio(const _LHASH *lh, BIO *out); 187void 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
191void 190void
192CRYPTO_mem_leaks_fp(FILE *fp) 191CRYPTO_mem_leaks_fp(FILE *fp)
193{ 192{
194 return; 193 return;
195} 194}
196#endif
197 195
198 196
199void 197void
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) \
220type *PEM_read_##name(FILE *fp, type **x, pem_password_cb *cb, void *u)\ 211type *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) \
256type *PEM_read_bio_##name(BIO *bp, type **x, pem_password_cb *cb, void *u)\ 246type *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
191RSA * 190RSA *
192PEM_read_RSAPrivateKey(FILE *fp, RSA **rsa, pem_password_cb *cb, void *u) 191PEM_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
202IMPLEMENT_PEM_write_cb_const(RSAPrivateKey, RSA, PEM_STRING_RSA, RSAPrivateKey) 200IMPLEMENT_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
240IMPLEMENT_PEM_rw(DSA_PUBKEY, DSA, PEM_STRING_PUBLIC, DSA_PUBKEY) 238IMPLEMENT_PEM_rw(DSA_PUBKEY, DSA, PEM_STRING_PUBLIC, DSA_PUBKEY)
241 239
242#ifndef OPENSSL_NO_FP_API
243 240
244DSA * 241DSA *
245PEM_read_DSAPrivateKey(FILE *fp, DSA **dsa, pem_password_cb *cb, void *u) 242PEM_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
255IMPLEMENT_PEM_rw_const(DSAparams, DSA, PEM_STRING_DSAPARAMS, DSAparams) 251IMPLEMENT_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
293IMPLEMENT_PEM_rw(EC_PUBKEY, EC_KEY, PEM_STRING_PUBLIC, EC_PUBKEY) 289IMPLEMENT_PEM_rw(EC_PUBKEY, EC_KEY, PEM_STRING_PUBLIC, EC_PUBKEY)
294 290
295#ifndef OPENSSL_NO_FP_API
296 291
297EC_KEY * 292EC_KEY *
298PEM_read_ECPrivateKey(FILE *fp, EC_KEY **eckey, pem_password_cb *cb, void *u) 293PEM_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
74STACK_OF(X509_INFO) * 73STACK_OF(X509_INFO) *
75PEM_X509_INFO_read(FILE *fp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb, 74PEM_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
92STACK_OF(X509_INFO) * 90STACK_OF(X509_INFO) *
93PEM_X509_INFO_read_bio(BIO *bp, STACK_OF(X509_INFO) *sk, pem_password_cb *cb, 91PEM_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);
85int 85int
86PEM_def_callback(char *buf, int num, int w, void *key) 86PEM_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
126void 119void
@@ -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
167void * 159void *
168PEM_ASN1_read(d2i_of_void *d2i, const char *name, FILE *fp, void **x, 160PEM_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
185static int 176static int
186check_pem(const char *nm, const char *name) 177check_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
324int 314int
325PEM_ASN1_write(i2d_of_void *i2d, const char *name, FILE *fp, void *x, 315PEM_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
343int 332int
344PEM_ASN1_write_bio(i2d_of_void *i2d, const char *name, BIO *bp, void *x, 333PEM_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
580int 568int
581PEM_write(FILE *fp, char *name, char *header, unsigned char *data, long len) 569PEM_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
597int 584int
598PEM_write_bio(BIO *bp, const char *name, char *header, unsigned char *data, 585PEM_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
659int 645int
660PEM_read(FILE *fp, char **name, char **header, unsigned char **data, long *len) 646PEM_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
676int 661int
677PEM_read_bio(BIO *bp, char **name, char **header, unsigned char **data, 662PEM_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
195int 194int
196i2d_PKCS8PrivateKey_fp(FILE *fp, EVP_PKEY *x, const EVP_CIPHER *enc, 195i2d_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
256IMPLEMENT_PEM_rw(PKCS8, X509_SIG, PEM_STRING_PKCS8, X509_SIG) 254IMPLEMENT_PEM_rw(PKCS8, X509_SIG, PEM_STRING_PKCS8, X509_SIG)
257IMPLEMENT_PEM_rw(PKCS8_PRIV_KEY_INFO, PKCS8_PRIV_KEY_INFO, PEM_STRING_PKCS8INF, 255IMPLEMENT_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
221EVP_PKEY * 220EVP_PKEY *
222PEM_read_PrivateKey(FILE *fp, EVP_PKEY **x, pem_password_cb *cb, void *u) 221PEM_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
104int i2d_PKCS12_fp(FILE *fp, PKCS12 *p12) 103int 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
110PKCS12 *d2i_PKCS12_bio(BIO *bp, PKCS12 **p12) 108PKCS12 *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
115PKCS12 *d2i_PKCS12_fp(FILE *fp, PKCS12 **p12) 112PKCS12 *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
121PKCS12_SAFEBAG *PKCS12_x5092certbag(X509 *x509) 117PKCS12_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
274int PKCS7_ISSUER_AND_SERIAL_digest(PKCS7_ISSUER_AND_SERIAL *data,const EVP_MD *type, 274int 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
277PKCS7 *d2i_PKCS7_fp(FILE *fp,PKCS7 **p7); 276PKCS7 *d2i_PKCS7_fp(FILE *fp,PKCS7 **p7);
278int i2d_PKCS7_fp(FILE *fp,PKCS7 *p7); 277int i2d_PKCS7_fp(FILE *fp,PKCS7 *p7);
279#endif
280PKCS7 *PKCS7_dup(PKCS7 *p7); 278PKCS7 *PKCS7_dup(PKCS7 *p7);
281PKCS7 *d2i_PKCS7_bio(BIO *bp,PKCS7 **p7); 279PKCS7 *d2i_PKCS7_bio(BIO *bp,PKCS7 **p7);
282int i2d_PKCS7_bio(BIO *bp,PKCS7 *p7); 280int 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
334DECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS) 334DECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS)
335 335
336#ifndef OPENSSL_NO_FP_API
337int RSA_print_fp(FILE *fp, const RSA *r,int offset); 336int RSA_print_fp(FILE *fp, const RSA *r,int offset);
338#endif
339 337
340#ifndef OPENSSL_NO_BIO 338#ifndef OPENSSL_NO_BIO
341int RSA_print(BIO *bp, const RSA *r,int offset); 339int 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
65int RSA_print_fp(FILE *fp, const RSA *x, int off) 64int 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
82int RSA_print(BIO *bp, const RSA *x, int off) 80int 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
86TS_MSG_IMPRINT * 85TS_MSG_IMPRINT *
87d2i_TS_MSG_IMPRINT_fp(FILE *fp, TS_MSG_IMPRINT **a) 86d2i_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
100ASN1_SEQUENCE(TS_REQ) = { 98ASN1_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
127TS_REQ * 124TS_REQ *
128d2i_TS_REQ_fp(FILE *fp, TS_REQ **a) 125d2i_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
140ASN1_SEQUENCE(TS_ACCURACY) = { 136ASN1_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
181TS_TST_INFO * 176TS_TST_INFO *
182d2i_TS_TST_INFO_fp(FILE *fp, TS_TST_INFO **a) 177d2i_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
195ASN1_SEQUENCE(TS_STATUS_INFO) = { 189ASN1_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
272TS_RESP * 265TS_RESP *
273d2i_TS_RESP_fp(FILE *fp, TS_RESP **a) 266d2i_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
285ASN1_SEQUENCE(ESS_ISSUER_SERIAL) = { 277ASN1_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
677X509 *d2i_X509_fp(FILE *fp, X509 **x509); 676X509 *d2i_X509_fp(FILE *fp, X509 **x509);
678int i2d_X509_fp(FILE *fp,X509 *x509); 677int i2d_X509_fp(FILE *fp,X509 *x509);
679X509_CRL *d2i_X509_CRL_fp(FILE *fp,X509_CRL **crl); 678X509_CRL *d2i_X509_CRL_fp(FILE *fp,X509_CRL **crl);
@@ -709,7 +708,6 @@ int i2d_PrivateKey_fp(FILE *fp, EVP_PKEY *pkey);
709EVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a); 708EVP_PKEY *d2i_PrivateKey_fp(FILE *fp, EVP_PKEY **a);
710int i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey); 709int i2d_PUBKEY_fp(FILE *fp, EVP_PKEY *pkey);
711EVP_PKEY *d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a); 710EVP_PKEY *d2i_PUBKEY_fp(FILE *fp, EVP_PKEY **a);
712#endif
713 711
714#ifndef OPENSSL_NO_BIO 712#ifndef OPENSSL_NO_BIO
715X509 *d2i_X509_bio(BIO *bp,X509 **x509); 713X509 *d2i_X509_bio(BIO *bp,X509 **x509);
@@ -965,13 +963,11 @@ unsigned long X509_NAME_hash_old(X509_NAME *x);
965 963
966int X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b); 964int X509_CRL_cmp(const X509_CRL *a, const X509_CRL *b);
967int X509_CRL_match(const X509_CRL *a, const X509_CRL *b); 965int X509_CRL_match(const X509_CRL *a, const X509_CRL *b);
968#ifndef OPENSSL_NO_FP_API
969int X509_print_ex_fp(FILE *bp,X509 *x, unsigned long nmflag, unsigned long cflag); 966int X509_print_ex_fp(FILE *bp,X509 *x, unsigned long nmflag, unsigned long cflag);
970int X509_print_fp(FILE *bp,X509 *x); 967int X509_print_fp(FILE *bp,X509 *x);
971int X509_CRL_print_fp(FILE *bp,X509_CRL *x); 968int X509_CRL_print_fp(FILE *bp,X509_CRL *x);
972int X509_REQ_print_fp(FILE *bp,X509_REQ *req); 969int X509_REQ_print_fp(FILE *bp,X509_REQ *req);
973int X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags); 970int 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
977int X509_NAME_print(BIO *bp, X509_NAME *name, int obase); 973int 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
150X509 * 149X509 *
151d2i_X509_fp(FILE *fp, X509 **x509) 150d2i_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
163X509 * 161X509 *
164d2i_X509_bio(BIO *bp, X509 **x509) 162d2i_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
176X509_CRL * 173X509_CRL *
177d2i_X509_CRL_fp(FILE *fp, X509_CRL **crl) 174d2i_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
189X509_CRL * 185X509_CRL *
190d2i_X509_CRL_bio(BIO *bp, X509_CRL **crl) 186d2i_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
202PKCS7 * 197PKCS7 *
203d2i_PKCS7_fp(FILE *fp, PKCS7 **p7) 198d2i_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
215PKCS7 * 209PKCS7 *
216d2i_PKCS7_bio(BIO *bp, PKCS7 **p7) 210d2i_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
228X509_REQ * 221X509_REQ *
229d2i_X509_REQ_fp(FILE *fp, X509_REQ **req) 222d2i_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
241X509_REQ * 233X509_REQ *
242d2i_X509_REQ_bio(BIO *bp, X509_REQ **req) 234d2i_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
256RSA * 247RSA *
257d2i_RSAPrivateKey_fp(FILE *fp, RSA **rsa) 248d2i_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
295RSA * 285RSA *
296d2i_RSAPrivateKey_bio(BIO *bp, RSA **rsa) 286d2i_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
335DSA * 324DSA *
336d2i_DSAPrivateKey_fp(FILE *fp, DSA **dsa) 325d2i_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
360DSA * 348DSA *
361d2i_DSAPrivateKey_bio(BIO *bp, DSA **dsa) 349d2i_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
388EC_KEY * 375EC_KEY *
389d2i_EC_PUBKEY_fp(FILE *fp, EC_KEY **eckey) 376d2i_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
412EC_KEY * 398EC_KEY *
413d2i_EC_PUBKEY_bio(BIO *bp, EC_KEY **eckey) 399d2i_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
491X509_SIG * 476X509_SIG *
492d2i_PKCS8_fp(FILE *fp, X509_SIG **p8) 477d2i_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
504X509_SIG * 488X509_SIG *
505d2i_PKCS8_bio(BIO *bp, X509_SIG **p8) 489d2i_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
517PKCS8_PRIV_KEY_INFO * 500PKCS8_PRIV_KEY_INFO *
518d2i_PKCS8_PRIV_KEY_INFO_fp(FILE *fp, PKCS8_PRIV_KEY_INFO **p8inf) 501d2i_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
571PKCS8_PRIV_KEY_INFO * 553PKCS8_PRIV_KEY_INFO *
572d2i_PKCS8_PRIV_KEY_INFO_bio(BIO *bp, PKCS8_PRIV_KEY_INFO **p8inf) 554d2i_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
216int 215int
217X509V3_EXT_print_fp(FILE *fp, X509_EXTENSION *ext, int flag, int indent) 216X509V3_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);
1651const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s, 1651const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s,
1652 unsigned int *len); 1652 unsigned int *len);
1653unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s); 1653unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s);
1654#ifndef OPENSSL_NO_FP_API
1655int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses); 1654int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses);
1656#endif
1657#ifndef OPENSSL_NO_BIO 1655#ifndef OPENSSL_NO_BIO
1658int SSL_SESSION_print(BIO *fp, const SSL_SESSION *ses); 1656int 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
90int 89int
91SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *x) 90SSL_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
107int 105int
108SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) 106SSL_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);
1651const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s, 1651const unsigned char *SSL_SESSION_get_id(const SSL_SESSION *s,
1652 unsigned int *len); 1652 unsigned int *len);
1653unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s); 1653unsigned int SSL_SESSION_get_compress_id(const SSL_SESSION *s);
1654#ifndef OPENSSL_NO_FP_API
1655int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses); 1654int SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *ses);
1656#endif
1657#ifndef OPENSSL_NO_BIO 1655#ifndef OPENSSL_NO_BIO
1658int SSL_SESSION_print(BIO *fp, const SSL_SESSION *ses); 1656int 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
90int 89int
91SSL_SESSION_print_fp(FILE *fp, const SSL_SESSION *x) 90SSL_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
107int 105int
108SSL_SESSION_print(BIO *bp, const SSL_SESSION *x) 106SSL_SESSION_print(BIO *bp, const SSL_SESSION *x)