summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn
diff options
context:
space:
mode:
authorbeck <>2014-05-29 20:21:23 +0000
committerbeck <>2014-05-29 20:21:23 +0000
commitd205a2aecb99564cccfbea61c39ebe3b0ddd7fb7 (patch)
tree0085ebdac711a18932d8d8d531d36f82fce2c8bc /src/lib/libcrypto/bn
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@
Diffstat (limited to 'src/lib/libcrypto/bn')
-rw-r--r--src/lib/libcrypto/bn/bn.h4
-rw-r--r--src/lib/libcrypto/bn/bn_print.c2
2 files changed, 0 insertions, 6 deletions
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)