diff options
author | beck <> | 2014-05-29 20:21:23 +0000 |
---|---|---|
committer | beck <> | 2014-05-29 20:21:23 +0000 |
commit | d205a2aecb99564cccfbea61c39ebe3b0ddd7fb7 (patch) | |
tree | 0085ebdac711a18932d8d8d531d36f82fce2c8bc /src/lib/libcrypto/asn1 | |
parent | 6f22007e67d4c2d77b9caea83bc05974d11dbb0d (diff) | |
download | openbsd-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@
Diffstat (limited to 'src/lib/libcrypto/asn1')
-rw-r--r-- | src/lib/libcrypto/asn1/a_d2i_fp.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/asn1/a_i2d_fp.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/asn1/a_strex.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/asn1/asn1.h | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/asn1/t_crl.c | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/asn1/t_req.c | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/asn1/t_x509.c | 2 |
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 @@ | |||
65 | static int asn1_d2i_read_bio(BIO *in, BUF_MEM **pb); | 65 | static int asn1_d2i_read_bio(BIO *in, BUF_MEM **pb); |
66 | 66 | ||
67 | #ifndef NO_OLD_ASN1 | 67 | #ifndef NO_OLD_ASN1 |
68 | #ifndef OPENSSL_NO_FP_API | ||
69 | 68 | ||
70 | void * | 69 | void * |
71 | ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x) | 70 | ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x) |
@@ -82,7 +81,6 @@ ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x) | |||
82 | BIO_free(b); | 81 | BIO_free(b); |
83 | return (ret); | 82 | return (ret); |
84 | } | 83 | } |
85 | #endif | ||
86 | 84 | ||
87 | void * | 85 | void * |
88 | ASN1_d2i_bio(void *(*xnew)(void), d2i_of_void *d2i, BIO *in, void **x) | 86 | ASN1_d2i_bio(void *(*xnew)(void), d2i_of_void *d2i, BIO *in, void **x) |
@@ -128,7 +126,6 @@ err: | |||
128 | return (ret); | 126 | return (ret); |
129 | } | 127 | } |
130 | 128 | ||
131 | #ifndef OPENSSL_NO_FP_API | ||
132 | void * | 129 | void * |
133 | ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x) | 130 | ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x) |
134 | { | 131 | { |
@@ -144,7 +141,6 @@ ASN1_item_d2i_fp(const ASN1_ITEM *it, FILE *in, void *x) | |||
144 | BIO_free(b); | 141 | BIO_free(b); |
145 | return (ret); | 142 | return (ret); |
146 | } | 143 | } |
147 | #endif | ||
148 | 144 | ||
149 | #define HEADER_SIZE 8 | 145 | #define HEADER_SIZE 8 |
150 | static int | 146 | static int |
diff --git a/src/lib/libcrypto/asn1/a_i2d_fp.c b/src/lib/libcrypto/asn1/a_i2d_fp.c index 007e612b4a..b9d066754b 100644 --- a/src/lib/libcrypto/asn1/a_i2d_fp.c +++ b/src/lib/libcrypto/asn1/a_i2d_fp.c | |||
@@ -63,7 +63,6 @@ | |||
63 | 63 | ||
64 | #ifndef NO_OLD_ASN1 | 64 | #ifndef NO_OLD_ASN1 |
65 | 65 | ||
66 | #ifndef OPENSSL_NO_FP_API | ||
67 | int | 66 | int |
68 | ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x) | 67 | ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x) |
69 | { | 68 | { |
@@ -79,7 +78,6 @@ ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x) | |||
79 | BIO_free(b); | 78 | BIO_free(b); |
80 | return (ret); | 79 | return (ret); |
81 | } | 80 | } |
82 | #endif | ||
83 | 81 | ||
84 | int | 82 | int |
85 | ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x) | 83 | ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x) |
@@ -115,7 +113,6 @@ ASN1_i2d_bio(i2d_of_void *i2d, BIO *out, unsigned char *x) | |||
115 | 113 | ||
116 | #endif | 114 | #endif |
117 | 115 | ||
118 | #ifndef OPENSSL_NO_FP_API | ||
119 | int | 116 | int |
120 | ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x) | 117 | ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x) |
121 | { | 118 | { |
@@ -131,7 +128,6 @@ ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x) | |||
131 | BIO_free(b); | 128 | BIO_free(b); |
132 | return (ret); | 129 | return (ret); |
133 | } | 130 | } |
134 | #endif | ||
135 | 131 | ||
136 | int | 132 | int |
137 | ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, void *x) | 133 | ASN1_item_i2d_bio(const ASN1_ITEM *it, BIO *out, void *x) |
diff --git a/src/lib/libcrypto/asn1/a_strex.c b/src/lib/libcrypto/asn1/a_strex.c index 684e933c4f..dcdd9d0f14 100644 --- a/src/lib/libcrypto/asn1/a_strex.c +++ b/src/lib/libcrypto/asn1/a_strex.c | |||
@@ -601,7 +601,6 @@ X509_NAME_print_ex(BIO *out, X509_NAME *nm, int indent, unsigned long flags) | |||
601 | return do_name_ex(send_bio_chars, out, nm, indent, flags); | 601 | return do_name_ex(send_bio_chars, out, nm, indent, flags); |
602 | } | 602 | } |
603 | 603 | ||
604 | #ifndef OPENSSL_NO_FP_API | ||
605 | int | 604 | int |
606 | X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags) | 605 | X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags) |
607 | { | 606 | { |
@@ -617,7 +616,6 @@ X509_NAME_print_ex_fp(FILE *fp, X509_NAME *nm, int indent, unsigned long flags) | |||
617 | } | 616 | } |
618 | return do_name_ex(send_fp_chars, fp, nm, indent, flags); | 617 | return do_name_ex(send_fp_chars, fp, nm, indent, flags); |
619 | } | 618 | } |
620 | #endif | ||
621 | 619 | ||
622 | int | 620 | int |
623 | ASN1_STRING_print_ex(BIO *out, ASN1_STRING *str, unsigned long flags) | 621 | ASN1_STRING_print_ex(BIO *out, ASN1_STRING *str, unsigned long flags) |
@@ -625,13 +623,11 @@ ASN1_STRING_print_ex(BIO *out, ASN1_STRING *str, unsigned long flags) | |||
625 | return do_print_ex(send_bio_chars, out, flags, str); | 623 | return do_print_ex(send_bio_chars, out, flags, str); |
626 | } | 624 | } |
627 | 625 | ||
628 | #ifndef OPENSSL_NO_FP_API | ||
629 | int | 626 | int |
630 | ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags) | 627 | ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags) |
631 | { | 628 | { |
632 | return do_print_ex(send_fp_chars, fp, flags, str); | 629 | return do_print_ex(send_fp_chars, fp, flags, str); |
633 | } | 630 | } |
634 | #endif | ||
635 | 631 | ||
636 | /* Utility function: convert any string type to UTF8, returns number of bytes | 632 | /* Utility function: convert any string type to UTF8, returns number of bytes |
637 | * in output string or a negative error code | 633 | * in output string or a negative error code |
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h index 6543e5aafe..be417bb7eb 100644 --- a/src/lib/libcrypto/asn1/asn1.h +++ b/src/lib/libcrypto/asn1/asn1.h | |||
@@ -931,7 +931,6 @@ void *ASN1_item_dup(const ASN1_ITEM *it, void *x); | |||
931 | #define M_ASN1_free_of(x, type) \ | 931 | #define M_ASN1_free_of(x, type) \ |
932 | ASN1_item_free(CHECKED_PTR_OF(type, x), ASN1_ITEM_rptr(type)) | 932 | ASN1_item_free(CHECKED_PTR_OF(type, x), ASN1_ITEM_rptr(type)) |
933 | 933 | ||
934 | #ifndef OPENSSL_NO_FP_API | ||
935 | void *ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x); | 934 | void *ASN1_d2i_fp(void *(*xnew)(void), d2i_of_void *d2i, FILE *in, void **x); |
936 | 935 | ||
937 | #define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \ | 936 | #define ASN1_d2i_fp_of(type,xnew,d2i,in,x) \ |
@@ -955,7 +954,6 @@ int ASN1_i2d_fp(i2d_of_void *i2d, FILE *out, void *x); | |||
955 | 954 | ||
956 | int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x); | 955 | int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x); |
957 | int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags); | 956 | int ASN1_STRING_print_ex_fp(FILE *fp, ASN1_STRING *str, unsigned long flags); |
958 | #endif | ||
959 | 957 | ||
960 | int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in); | 958 | int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in); |
961 | 959 | ||
diff --git a/src/lib/libcrypto/asn1/t_crl.c b/src/lib/libcrypto/asn1/t_crl.c index cd1ed26174..ab4a8c60d2 100644 --- a/src/lib/libcrypto/asn1/t_crl.c +++ b/src/lib/libcrypto/asn1/t_crl.c | |||
@@ -64,7 +64,6 @@ | |||
64 | #include <openssl/x509.h> | 64 | #include <openssl/x509.h> |
65 | #include <openssl/x509v3.h> | 65 | #include <openssl/x509v3.h> |
66 | 66 | ||
67 | #ifndef OPENSSL_NO_FP_API | ||
68 | int | 67 | int |
69 | X509_CRL_print_fp(FILE *fp, X509_CRL *x) | 68 | X509_CRL_print_fp(FILE *fp, X509_CRL *x) |
70 | { | 69 | { |
@@ -80,7 +79,6 @@ X509_CRL_print_fp(FILE *fp, X509_CRL *x) | |||
80 | BIO_free(b); | 79 | BIO_free(b); |
81 | return (ret); | 80 | return (ret); |
82 | } | 81 | } |
83 | #endif | ||
84 | 82 | ||
85 | int | 83 | int |
86 | X509_CRL_print(BIO *out, X509_CRL *x) | 84 | X509_CRL_print(BIO *out, X509_CRL *x) |
diff --git a/src/lib/libcrypto/asn1/t_req.c b/src/lib/libcrypto/asn1/t_req.c index 331440bed5..78f06950cc 100644 --- a/src/lib/libcrypto/asn1/t_req.c +++ b/src/lib/libcrypto/asn1/t_req.c | |||
@@ -70,7 +70,6 @@ | |||
70 | #include <openssl/dsa.h> | 70 | #include <openssl/dsa.h> |
71 | #endif | 71 | #endif |
72 | 72 | ||
73 | #ifndef OPENSSL_NO_FP_API | ||
74 | int | 73 | int |
75 | X509_REQ_print_fp(FILE *fp, X509_REQ *x) | 74 | X509_REQ_print_fp(FILE *fp, X509_REQ *x) |
76 | { | 75 | { |
@@ -86,7 +85,6 @@ X509_REQ_print_fp(FILE *fp, X509_REQ *x) | |||
86 | BIO_free(b); | 85 | BIO_free(b); |
87 | return (ret); | 86 | return (ret); |
88 | } | 87 | } |
89 | #endif | ||
90 | 88 | ||
91 | int | 89 | int |
92 | X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags, | 90 | X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags, |
diff --git a/src/lib/libcrypto/asn1/t_x509.c b/src/lib/libcrypto/asn1/t_x509.c index 81333d67cf..efba93adeb 100644 --- a/src/lib/libcrypto/asn1/t_x509.c +++ b/src/lib/libcrypto/asn1/t_x509.c | |||
@@ -74,7 +74,6 @@ | |||
74 | #include <openssl/x509v3.h> | 74 | #include <openssl/x509v3.h> |
75 | #include "asn1_locl.h" | 75 | #include "asn1_locl.h" |
76 | 76 | ||
77 | #ifndef OPENSSL_NO_FP_API | ||
78 | int | 77 | int |
79 | X509_print_fp(FILE *fp, X509 *x) | 78 | X509_print_fp(FILE *fp, X509 *x) |
80 | { | 79 | { |
@@ -96,7 +95,6 @@ X509_print_ex_fp(FILE *fp, X509 *x, unsigned long nmflag, unsigned long cflag) | |||
96 | BIO_free(b); | 95 | BIO_free(b); |
97 | return (ret); | 96 | return (ret); |
98 | } | 97 | } |
99 | #endif | ||
100 | 98 | ||
101 | int | 99 | int |
102 | X509_print(BIO *bp, X509 *x) | 100 | X509_print(BIO *bp, X509 *x) |