summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/asn1')
-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
7 files changed, 0 insertions, 20 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)