diff options
| author | beck <> | 2001-08-01 19:51:17 +0000 |
|---|---|---|
| committer | beck <> | 2001-08-01 19:51:17 +0000 |
| commit | 4b790f68539c49ef91f5e82506c2624900c92106 (patch) | |
| tree | d14ff9f79630cb04ad006cd2730646f44f62d786 /src/lib/libcrypto/bio | |
| parent | edbfd6c7e91e15e92ef0df548474ac76b6dddca0 (diff) | |
| download | openbsd-4b790f68539c49ef91f5e82506c2624900c92106.tar.gz openbsd-4b790f68539c49ef91f5e82506c2624900c92106.tar.bz2 openbsd-4b790f68539c49ef91f5e82506c2624900c92106.zip | |
merge openssl 0.9.6b-engine
Note that this is a maintenence release, API's appear *not* to have changed.
As such, I have only increased the minor number on these libraries
Diffstat (limited to 'src/lib/libcrypto/bio')
| -rw-r--r-- | src/lib/libcrypto/bio/b_print.c | 14 | ||||
| -rw-r--r-- | src/lib/libcrypto/bio/bf_buff.c | 2 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/lib/libcrypto/bio/b_print.c b/src/lib/libcrypto/bio/b_print.c index b4f7a85f2e..91a049406e 100644 --- a/src/lib/libcrypto/bio/b_print.c +++ b/src/lib/libcrypto/bio/b_print.c | |||
| @@ -109,7 +109,11 @@ | |||
| 109 | #endif | 109 | #endif |
| 110 | 110 | ||
| 111 | #if HAVE_LONG_LONG | 111 | #if HAVE_LONG_LONG |
| 112 | #define LLONG long long | 112 | # if defined(WIN32) && !defined(__GNUC__) |
| 113 | # define LLONG _int64 | ||
| 114 | # else | ||
| 115 | # define LLONG long long | ||
| 116 | # endif | ||
| 113 | #else | 117 | #else |
| 114 | #define LLONG long | 118 | #define LLONG long |
| 115 | #endif | 119 | #endif |
| @@ -152,7 +156,7 @@ static void _dopr(char **sbuffer, char **buffer, | |||
| 152 | 156 | ||
| 153 | /* some handy macros */ | 157 | /* some handy macros */ |
| 154 | #define char_to_int(p) (p - '0') | 158 | #define char_to_int(p) (p - '0') |
| 155 | #define MAX(p,q) ((p >= q) ? p : q) | 159 | #define OSSL_MAX(p,q) ((p >= q) ? p : q) |
| 156 | 160 | ||
| 157 | static void | 161 | static void |
| 158 | _dopr( | 162 | _dopr( |
| @@ -503,13 +507,13 @@ fmtint( | |||
| 503 | convert[place] = 0; | 507 | convert[place] = 0; |
| 504 | 508 | ||
| 505 | zpadlen = max - place; | 509 | zpadlen = max - place; |
| 506 | spadlen = min - MAX(max, place) - (signvalue ? 1 : 0); | 510 | spadlen = min - OSSL_MAX(max, place) - (signvalue ? 1 : 0); |
| 507 | if (zpadlen < 0) | 511 | if (zpadlen < 0) |
| 508 | zpadlen = 0; | 512 | zpadlen = 0; |
| 509 | if (spadlen < 0) | 513 | if (spadlen < 0) |
| 510 | spadlen = 0; | 514 | spadlen = 0; |
| 511 | if (flags & DP_F_ZERO) { | 515 | if (flags & DP_F_ZERO) { |
| 512 | zpadlen = MAX(zpadlen, spadlen); | 516 | zpadlen = OSSL_MAX(zpadlen, spadlen); |
| 513 | spadlen = 0; | 517 | spadlen = 0; |
| 514 | } | 518 | } |
| 515 | if (flags & DP_F_MINUS) | 519 | if (flags & DP_F_MINUS) |
| @@ -641,7 +645,7 @@ fmtfp( | |||
| 641 | (caps ? "0123456789ABCDEF" | 645 | (caps ? "0123456789ABCDEF" |
| 642 | : "0123456789abcdef")[fracpart % 10]; | 646 | : "0123456789abcdef")[fracpart % 10]; |
| 643 | fracpart = (fracpart / 10); | 647 | fracpart = (fracpart / 10); |
| 644 | } while (fracpart && (fplace < 20)); | 648 | } while (fplace < max); |
| 645 | if (fplace == 20) | 649 | if (fplace == 20) |
| 646 | fplace--; | 650 | fplace--; |
| 647 | fconvert[fplace] = 0; | 651 | fconvert[fplace] = 0; |
diff --git a/src/lib/libcrypto/bio/bf_buff.c b/src/lib/libcrypto/bio/bf_buff.c index f50e8f98a3..c90238bae1 100644 --- a/src/lib/libcrypto/bio/bf_buff.c +++ b/src/lib/libcrypto/bio/bf_buff.c | |||
| @@ -70,7 +70,7 @@ static long buffer_ctrl(BIO *h, int cmd, long arg1, void *arg2); | |||
| 70 | static int buffer_new(BIO *h); | 70 | static int buffer_new(BIO *h); |
| 71 | static int buffer_free(BIO *data); | 71 | static int buffer_free(BIO *data); |
| 72 | static long buffer_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp); | 72 | static long buffer_callback_ctrl(BIO *h, int cmd, bio_info_cb *fp); |
| 73 | #define DEFAULT_BUFFER_SIZE 1024 | 73 | #define DEFAULT_BUFFER_SIZE 4096 |
| 74 | 74 | ||
| 75 | static BIO_METHOD methods_buffer= | 75 | static BIO_METHOD methods_buffer= |
| 76 | { | 76 | { |
