diff options
| author | jsing <> | 2014-04-16 15:05:23 +0000 |
|---|---|---|
| committer | jsing <> | 2014-04-16 15:05:23 +0000 |
| commit | 0dc5f46224428f0ddf61596a00e25ce0e1ba18d4 (patch) | |
| tree | a1b56f00a31d02b8812b128ad441e3f5f26bbd54 | |
| parent | 7350ff4c3ebfa495bed84357843dac686dc82532 (diff) | |
| download | openbsd-0dc5f46224428f0ddf61596a00e25ce0e1ba18d4.tar.gz openbsd-0dc5f46224428f0ddf61596a00e25ce0e1ba18d4.tar.bz2 openbsd-0dc5f46224428f0ddf61596a00e25ce0e1ba18d4.zip | |
More KNF.
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/bio/b_dump.c | 14 | ||||
| -rw-r--r-- | src/lib/libcrypto/bio/b_print.c | 22 | ||||
| -rw-r--r-- | src/lib/libcrypto/bio/b_sock.c | 59 | ||||
| -rw-r--r-- | src/lib/libcrypto/bio/bf_buff.c | 22 | ||||
| -rw-r--r-- | src/lib/libcrypto/bio/bf_lbuf.c | 14 | ||||
| -rw-r--r-- | src/lib/libcrypto/bio/bf_nbio.c | 12 | ||||
| -rw-r--r-- | src/lib/libcrypto/bio/bf_null.c | 12 | ||||
| -rw-r--r-- | src/lib/libcrypto/bio/bio_cb.c | 14 | ||||
| -rw-r--r-- | src/lib/libcrypto/bio/bio_err.c | 6 | ||||
| -rw-r--r-- | src/lib/libcrypto/bio/bio_lib.c | 38 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/bio/b_dump.c | 14 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/bio/b_print.c | 22 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/bio/b_sock.c | 59 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/bio/bf_buff.c | 22 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/bio/bf_lbuf.c | 14 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/bio/bf_nbio.c | 12 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/bio/bf_null.c | 12 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/bio/bio_cb.c | 14 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/bio/bio_err.c | 6 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/bio/bio_lib.c | 38 |
20 files changed, 218 insertions, 208 deletions
diff --git a/src/lib/libcrypto/bio/b_dump.c b/src/lib/libcrypto/bio/b_dump.c index 32d523563e..090cfc2b5f 100644 --- a/src/lib/libcrypto/bio/b_dump.c +++ b/src/lib/libcrypto/bio/b_dump.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,14 +49,14 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | /* | 59 | /* |
| 60 | * Stolen from tjh's ssl/ssl_trc.c stuff. | 60 | * Stolen from tjh's ssl/ssl_trc.c stuff. |
| 61 | */ | 61 | */ |
| 62 | 62 | ||
diff --git a/src/lib/libcrypto/bio/b_print.c b/src/lib/libcrypto/bio/b_print.c index b3b0d45ee6..55a5ca1a32 100644 --- a/src/lib/libcrypto/bio/b_print.c +++ b/src/lib/libcrypto/bio/b_print.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,7 +49,7 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
| @@ -63,7 +63,7 @@ | |||
| 63 | # endif | 63 | # endif |
| 64 | #endif | 64 | #endif |
| 65 | 65 | ||
| 66 | /* | 66 | /* |
| 67 | * Stolen from tjh's ssl/ssl_trc.c stuff. | 67 | * Stolen from tjh's ssl/ssl_trc.c stuff. |
| 68 | */ | 68 | */ |
| 69 | 69 | ||
| @@ -336,7 +336,7 @@ _dopr(char **sbuffer, char **buffer, size_t *maxlen, size_t *retlen, | |||
| 336 | else | 336 | else |
| 337 | fvalue = va_arg(args, double); | 337 | fvalue = va_arg(args, double); |
| 338 | fmtfp(sbuffer, buffer, &currlen, maxlen, | 338 | fmtfp(sbuffer, buffer, &currlen, maxlen, |
| 339 | fvalue, min, max, flags); | 339 | fvalue, min, max, flags); |
| 340 | break; | 340 | break; |
| 341 | case 'E': | 341 | case 'E': |
| 342 | flags |= DP_F_UP; | 342 | flags |= DP_F_UP; |
| @@ -356,7 +356,7 @@ _dopr(char **sbuffer, char **buffer, size_t *maxlen, size_t *retlen, | |||
| 356 | break; | 356 | break; |
| 357 | case 'c': | 357 | case 'c': |
| 358 | doapr_outch(sbuffer, buffer, &currlen, maxlen, | 358 | doapr_outch(sbuffer, buffer, &currlen, maxlen, |
| 359 | va_arg(args, int)); | 359 | va_arg(args, int)); |
| 360 | break; | 360 | break; |
| 361 | case 's': | 361 | case 's': |
| 362 | strvalue = va_arg(args, char *); | 362 | strvalue = va_arg(args, char *); |
| @@ -671,7 +671,7 @@ fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, | |||
| 671 | doapr_outch(sbuffer, buffer, currlen, maxlen, signvalue); | 671 | doapr_outch(sbuffer, buffer, currlen, maxlen, signvalue); |
| 672 | 672 | ||
| 673 | while (iplace > 0) | 673 | while (iplace > 0) |
| 674 | doapr_outch(sbuffer, buffer, currlen, maxlen, iconvert[--iplace]); | 674 | doapr_outch(sbuffer, buffer, currlen, maxlen, iconvert[--iplace]); |
| 675 | 675 | ||
| 676 | /* | 676 | /* |
| 677 | * Decimal point. This should probably use locale to find the correct | 677 | * Decimal point. This should probably use locale to find the correct |
| @@ -681,7 +681,7 @@ fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, | |||
| 681 | doapr_outch(sbuffer, buffer, currlen, maxlen, '.'); | 681 | doapr_outch(sbuffer, buffer, currlen, maxlen, '.'); |
| 682 | 682 | ||
| 683 | while (fplace > 0) | 683 | while (fplace > 0) |
| 684 | doapr_outch(sbuffer, buffer, currlen, maxlen, fconvert[--fplace]); | 684 | doapr_outch(sbuffer, buffer, currlen, maxlen, fconvert[--fplace]); |
| 685 | } | 685 | } |
| 686 | while (zpadlen > 0) { | 686 | while (zpadlen > 0) { |
| 687 | doapr_outch(sbuffer, buffer, currlen, maxlen, '0'); | 687 | doapr_outch(sbuffer, buffer, currlen, maxlen, '0'); |
diff --git a/src/lib/libcrypto/bio/b_sock.c b/src/lib/libcrypto/bio/b_sock.c index 2a9159ec55..cd62f889ab 100644 --- a/src/lib/libcrypto/bio/b_sock.c +++ b/src/lib/libcrypto/bio/b_sock.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,7 +49,7 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
| @@ -240,7 +240,7 @@ BIO_sock_error(int sock) | |||
| 240 | * a cast it will choke the compiler: if you do have a cast then | 240 | * a cast it will choke the compiler: if you do have a cast then |
| 241 | * you can either go for (char *) or (void *). | 241 | * you can either go for (char *) or (void *). |
| 242 | */ | 242 | */ |
| 243 | i = getsockopt(sock, SOL_SOCKET, SO_ERROR,(void *)&j,(void *)&size); | 243 | i = getsockopt(sock, SOL_SOCKET, SO_ERROR, (void *)&j, (void *)&size); |
| 244 | if (i < 0) | 244 | if (i < 0) |
| 245 | return (1); | 245 | return (1); |
| 246 | else | 246 | else |
| @@ -317,12 +317,14 @@ static struct hostent | |||
| 317 | memset(ret->h_addr_list, 0, i*sizeof(char *)); | 317 | memset(ret->h_addr_list, 0, i*sizeof(char *)); |
| 318 | 318 | ||
| 319 | j = strlen(a->h_name) + 1; | 319 | j = strlen(a->h_name) + 1; |
| 320 | if ((ret->h_name = OPENSSL_malloc(j)) == NULL) goto err; | 320 | if ((ret->h_name = OPENSSL_malloc(j)) == NULL) |
| 321 | memcpy((char *)ret->h_name, a->h_name, j); | 321 | goto err; |
| 322 | memcpy((char *)ret->h_name, a->h_name, j); | ||
| 322 | for (i = 0; a->h_aliases[i] != NULL; i++) { | 323 | for (i = 0; a->h_aliases[i] != NULL; i++) { |
| 323 | j = strlen(a->h_aliases[i]) + 1; | 324 | j = strlen(a->h_aliases[i]) + 1; |
| 324 | if ((ret->h_aliases[i] = OPENSSL_malloc(j)) == NULL) goto err; | 325 | if ((ret->h_aliases[i] = OPENSSL_malloc(j)) == NULL) |
| 325 | memcpy(ret->h_aliases[i], a->h_aliases[i], j); | 326 | goto err; |
| 327 | memcpy(ret->h_aliases[i], a->h_aliases[i], j); | ||
| 326 | } | 328 | } |
| 327 | ret->h_length = a->h_length; | 329 | ret->h_length = a->h_length; |
| 328 | ret->h_addrtype = a->h_addrtype; | 330 | ret->h_addrtype = a->h_addrtype; |
| @@ -367,7 +369,8 @@ ghbn_free(struct hostent *a) | |||
| 367 | #endif | 369 | #endif |
| 368 | 370 | ||
| 369 | struct hostent | 371 | struct hostent |
| 370 | *BIO_gethostbyname(const char *name) { | 372 | *BIO_gethostbyname(const char *name) |
| 373 | { | ||
| 371 | #if 1 | 374 | #if 1 |
| 372 | /* Caching gethostbyname() results forever is wrong, | 375 | /* Caching gethostbyname() results forever is wrong, |
| 373 | * so we have to let the true gethostbyname() worry about this */ | 376 | * so we have to let the true gethostbyname() worry about this */ |
| @@ -504,7 +507,7 @@ BIO_socket_ioctl(int fd, long type, void *arg) | |||
| 504 | int i; | 507 | int i; |
| 505 | 508 | ||
| 506 | #ifdef __DJGPP__ | 509 | #ifdef __DJGPP__ |
| 507 | i = ioctl(fd, type,(char *)arg); | 510 | i = ioctl(fd, type, (char *)arg); |
| 508 | #else | 511 | #else |
| 509 | # if defined(OPENSSL_SYS_VMS) | 512 | # if defined(OPENSSL_SYS_VMS) |
| 510 | /* 2011-02-18 SMS. | 513 | /* 2011-02-18 SMS. |
| @@ -562,7 +565,7 @@ get_ip(const char *str, unsigned char ip[4]) | |||
| 562 | num++; | 565 | num++; |
| 563 | ok = 0; | 566 | ok = 0; |
| 564 | } else if (c == '\0' && (num == 3) && ok) | 567 | } else if (c == '\0' && (num == 3) && ok) |
| 565 | break; | 568 | break; |
| 566 | else | 569 | else |
| 567 | return (0); | 570 | return (0); |
| 568 | } | 571 | } |
| @@ -618,8 +621,8 @@ BIO_get_accept_socket(char *host, int bind_mode) | |||
| 618 | static union { | 621 | static union { |
| 619 | void *p; | 622 | void *p; |
| 620 | int (WSAAPI *f)(const char *, const char *, | 623 | int (WSAAPI *f)(const char *, const char *, |
| 621 | const struct addrinfo *, | 624 | const struct addrinfo *, |
| 622 | struct addrinfo **); | 625 | struct addrinfo **); |
| 623 | } p_getaddrinfo = {NULL}; | 626 | } p_getaddrinfo = {NULL}; |
| 624 | static union { | 627 | static union { |
| 625 | void *p; | 628 | void *p; |
| @@ -630,9 +633,10 @@ BIO_get_accept_socket(char *host, int bind_mode) | |||
| 630 | if (p_getaddrinfo.p == NULL) { | 633 | if (p_getaddrinfo.p == NULL) { |
| 631 | if ((p_getaddrinfo.p = DSO_global_lookup("getaddrinfo"))==NULL || | 634 | if ((p_getaddrinfo.p = DSO_global_lookup("getaddrinfo"))==NULL || |
| 632 | (p_freeaddrinfo.p = DSO_global_lookup("freeaddrinfo"))==NULL) | 635 | (p_freeaddrinfo.p = DSO_global_lookup("freeaddrinfo"))==NULL) |
| 633 | p_getaddrinfo.p = (void*) - 1; | 636 | p_getaddrinfo.p = (void*) - 1; |
| 634 | } | 637 | } |
| 635 | if (p_getaddrinfo.p == (void *) - 1) break; | 638 | if (p_getaddrinfo.p == (void *) - 1) |
| 639 | break; | ||
| 636 | 640 | ||
| 637 | /* '::port' enforces IPv6 wildcard listener. Some OSes, | 641 | /* '::port' enforces IPv6 wildcard listener. Some OSes, |
| 638 | * e.g. Solaris, default to IPv6 without any hint. Also | 642 | * e.g. Solaris, default to IPv6 without any hint. Also |
| @@ -680,8 +684,7 @@ BIO_get_accept_socket(char *host, int bind_mode) | |||
| 680 | else { | 684 | else { |
| 681 | if (!BIO_get_host_ip(h, &(ip[0]))) | 685 | if (!BIO_get_host_ip(h, &(ip[0]))) |
| 682 | goto err; | 686 | goto err; |
| 683 | l = (unsigned long) | 687 | l = (unsigned long)((unsigned long)ip[0]<<24L)| |
| 684 | ((unsigned long)ip[0]<<24L)| | ||
| 685 | ((unsigned long)ip[1]<<16L)| | 688 | ((unsigned long)ip[1]<<16L)| |
| 686 | ((unsigned long)ip[2]<< 8L)| | 689 | ((unsigned long)ip[2]<< 8L)| |
| 687 | ((unsigned long)ip[3]); | 690 | ((unsigned long)ip[3]); |
| @@ -701,7 +704,7 @@ again: | |||
| 701 | if (bind_mode == BIO_BIND_REUSEADDR) { | 704 | if (bind_mode == BIO_BIND_REUSEADDR) { |
| 702 | int i = 1; | 705 | int i = 1; |
| 703 | 706 | ||
| 704 | ret = setsockopt(s, SOL_SOCKET, SO_REUSEADDR,(char *)&i, sizeof(i)); | 707 | ret = setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&i, sizeof(i)); |
| 705 | bind_mode = BIO_BIND_NORMAL; | 708 | bind_mode = BIO_BIND_NORMAL; |
| 706 | } | 709 | } |
| 707 | #endif | 710 | #endif |
| @@ -709,8 +712,7 @@ again: | |||
| 709 | #ifdef SO_REUSEADDR | 712 | #ifdef SO_REUSEADDR |
| 710 | err_num = errno; | 713 | err_num = errno; |
| 711 | if ((bind_mode == BIO_BIND_REUSEADDR_IF_UNUSED) && | 714 | if ((bind_mode == BIO_BIND_REUSEADDR_IF_UNUSED) && |
| 712 | (err_num == EADDRINUSE)) | 715 | (err_num == EADDRINUSE)) { |
| 713 | { | ||
| 714 | client = server; | 716 | client = server; |
| 715 | if (h == NULL || strcmp(h, "*") == 0) { | 717 | if (h == NULL || strcmp(h, "*") == 0) { |
| 716 | #if OPENSSL_USE_IPV6 | 718 | #if OPENSSL_USE_IPV6 |
| @@ -807,15 +809,16 @@ BIO_accept(int sock, char **addr) | |||
| 807 | sa.len.s = 0; | 809 | sa.len.s = 0; |
| 808 | sa.len.i = sizeof(sa.from); | 810 | sa.len.i = sizeof(sa.from); |
| 809 | memset(&sa.from, 0, sizeof(sa.from)); | 811 | memset(&sa.from, 0, sizeof(sa.from)); |
| 810 | ret = accept(sock, &sa.from.sa,(void *)&sa.len); | 812 | ret = accept(sock, &sa.from.sa, (void *)&sa.len); |
| 811 | if (sizeof(sa.len.i) != sizeof(sa.len.s) && sa.len.i == 0) { | 813 | if (sizeof(sa.len.i) != sizeof(sa.len.s) && sa.len.i == 0) { |
| 812 | OPENSSL_assert(sa.len.s <= sizeof(sa.from)); | 814 | OPENSSL_assert(sa.len.s <= sizeof(sa.from)); |
| 813 | sa.len.i = (int)sa.len.s; | 815 | sa.len.i = (int)sa.len.s; |
| 814 | /* use sa.len.i from this point */ | 816 | /* use sa.len.i from this point */ |
| 815 | } | 817 | } |
| 816 | if (ret == -1) { | 818 | if (ret == -1) { |
| 817 | if (BIO_sock_should_retry(ret)) return -2; | 819 | if (BIO_sock_should_retry(ret)) |
| 818 | SYSerr(SYS_F_ACCEPT, errno); | 820 | return -2; |
| 821 | SYSerr(SYS_F_ACCEPT, errno); | ||
| 819 | BIOerr(BIO_F_BIO_ACCEPT, BIO_R_ACCEPT_ERROR); | 822 | BIOerr(BIO_F_BIO_ACCEPT, BIO_R_ACCEPT_ERROR); |
| 820 | goto end; | 823 | goto end; |
| 821 | } | 824 | } |
| @@ -830,7 +833,7 @@ BIO_accept(int sock, char **addr) | |||
| 830 | static union { | 833 | static union { |
| 831 | void *p; | 834 | void *p; |
| 832 | int (WSAAPI *f)(const struct sockaddr *, | 835 | int (WSAAPI *f)(const struct sockaddr *, |
| 833 | size_t/*socklen_t*/, char *, size_t, | 836 | size_t/*socklen_t*/, char *, size_t, |
| 834 | char *, size_t, int); | 837 | char *, size_t, int); |
| 835 | } p_getnameinfo = {NULL}; | 838 | } p_getnameinfo = {NULL}; |
| 836 | /* 2nd argument to getnameinfo is specified to | 839 | /* 2nd argument to getnameinfo is specified to |
| @@ -900,7 +903,7 @@ BIO_set_tcp_ndelay(int s, int on) | |||
| 900 | #endif | 903 | #endif |
| 901 | #endif | 904 | #endif |
| 902 | 905 | ||
| 903 | ret = setsockopt(s, opt, TCP_NODELAY,(char *)&on, sizeof(on)); | 906 | ret = setsockopt(s, opt, TCP_NODELAY, (char *)&on, sizeof(on)); |
| 904 | #endif | 907 | #endif |
| 905 | return (ret == 0); | 908 | return (ret == 0); |
| 906 | } | 909 | } |
diff --git a/src/lib/libcrypto/bio/bf_buff.c b/src/lib/libcrypto/bio/bf_buff.c index 9518cf977e..937a1c58d5 100644 --- a/src/lib/libcrypto/bio/bf_buff.c +++ b/src/lib/libcrypto/bio/bf_buff.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,7 +49,7 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
| @@ -247,7 +247,7 @@ start: | |||
| 247 | /* we now have a full buffer needing flushing */ | 247 | /* we now have a full buffer needing flushing */ |
| 248 | for (;;) { | 248 | for (;;) { |
| 249 | i = BIO_write(b->next_bio, &(ctx->obuf[ctx->obuf_off]), | 249 | i = BIO_write(b->next_bio, &(ctx->obuf[ctx->obuf_off]), |
| 250 | ctx->obuf_len); | 250 | ctx->obuf_len); |
| 251 | if (i <= 0) { | 251 | if (i <= 0) { |
| 252 | BIO_copy_next_retry(b); | 252 | BIO_copy_next_retry(b); |
| 253 | 253 | ||
| @@ -283,7 +283,7 @@ start: | |||
| 283 | return (num); | 283 | return (num); |
| 284 | } | 284 | } |
| 285 | 285 | ||
| 286 | /* copy the rest into the buffer since we have only a small | 286 | /* copy the rest into the buffer since we have only a small |
| 287 | * amount left */ | 287 | * amount left */ |
| 288 | goto start; | 288 | goto start; |
| 289 | } | 289 | } |
| @@ -348,7 +348,7 @@ buffer_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
| 348 | } | 348 | } |
| 349 | ctx->ibuf_off = 0; | 349 | ctx->ibuf_off = 0; |
| 350 | ctx->ibuf_len = (int)num; | 350 | ctx->ibuf_len = (int)num; |
| 351 | memcpy(ctx->ibuf, ptr,(int)num); | 351 | memcpy(ctx->ibuf, ptr, (int)num); |
| 352 | ret = 1; | 352 | ret = 1; |
| 353 | break; | 353 | break; |
| 354 | case BIO_C_SET_BUFF_SIZE: | 354 | case BIO_C_SET_BUFF_SIZE: |
| @@ -417,8 +417,8 @@ buffer_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
| 417 | BIO_clear_retry_flags(b); | 417 | BIO_clear_retry_flags(b); |
| 418 | if (ctx->obuf_len > 0) { | 418 | if (ctx->obuf_len > 0) { |
| 419 | r = BIO_write(b->next_bio, | 419 | r = BIO_write(b->next_bio, |
| 420 | &(ctx->obuf[ctx->obuf_off]), | 420 | &(ctx->obuf[ctx->obuf_off]), |
| 421 | ctx->obuf_len); | 421 | ctx->obuf_len); |
| 422 | #if 0 | 422 | #if 0 |
| 423 | fprintf(stderr, "FLUSH [%3d] %3d -> %3d\n", ctx->obuf_off, ctx->obuf_len, r); | 423 | fprintf(stderr, "FLUSH [%3d] %3d -> %3d\n", ctx->obuf_off, ctx->obuf_len, r); |
| 424 | #endif | 424 | #endif |
diff --git a/src/lib/libcrypto/bio/bf_lbuf.c b/src/lib/libcrypto/bio/bf_lbuf.c index 838839f1bf..006ed9d91c 100644 --- a/src/lib/libcrypto/bio/bf_lbuf.c +++ b/src/lib/libcrypto/bio/bf_lbuf.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,7 +49,7 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
| @@ -333,7 +333,7 @@ linebuffer_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
| 333 | BIO_clear_retry_flags(b); | 333 | BIO_clear_retry_flags(b); |
| 334 | if (ctx->obuf_len > 0) { | 334 | if (ctx->obuf_len > 0) { |
| 335 | r = BIO_write(b->next_bio, | 335 | r = BIO_write(b->next_bio, |
| 336 | ctx->obuf, ctx->obuf_len); | 336 | ctx->obuf, ctx->obuf_len); |
| 337 | #if 0 | 337 | #if 0 |
| 338 | fprintf(stderr, "FLUSH %3d -> %3d\n", ctx->obuf_len, r); | 338 | fprintf(stderr, "FLUSH %3d -> %3d\n", ctx->obuf_len, r); |
| 339 | #endif | 339 | #endif |
diff --git a/src/lib/libcrypto/bio/bf_nbio.c b/src/lib/libcrypto/bio/bf_nbio.c index 76f8f31950..d181f518ec 100644 --- a/src/lib/libcrypto/bio/bf_nbio.c +++ b/src/lib/libcrypto/bio/bf_nbio.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,7 +49,7 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
diff --git a/src/lib/libcrypto/bio/bf_null.c b/src/lib/libcrypto/bio/bf_null.c index 354731c0c7..ada677c91e 100644 --- a/src/lib/libcrypto/bio/bf_null.c +++ b/src/lib/libcrypto/bio/bf_null.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,7 +49,7 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
diff --git a/src/lib/libcrypto/bio/bio_cb.c b/src/lib/libcrypto/bio/bio_cb.c index 3e110f3751..00f41b1de1 100644 --- a/src/lib/libcrypto/bio/bio_cb.c +++ b/src/lib/libcrypto/bio/bio_cb.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,7 +49,7 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
| @@ -87,7 +87,7 @@ BIO_debug_callback(BIO *bio, int cmd, const char *argp, int argi, long argl, | |||
| 87 | if (bio->method->type & BIO_TYPE_DESCRIPTOR) | 87 | if (bio->method->type & BIO_TYPE_DESCRIPTOR) |
| 88 | (void) snprintf(p, p_maxlen, | 88 | (void) snprintf(p, p_maxlen, |
| 89 | "read(%d,%lu) - %s fd=%d\n", | 89 | "read(%d,%lu) - %s fd=%d\n", |
| 90 | bio->num,(unsigned long)argi, | 90 | bio->num, (unsigned long)argi, |
| 91 | bio->method->name, bio->num); | 91 | bio->method->name, bio->num); |
| 92 | else | 92 | else |
| 93 | (void) snprintf(p, p_maxlen, "read(%d,%lu) - %s\n", | 93 | (void) snprintf(p, p_maxlen, "read(%d,%lu) - %s\n", |
diff --git a/src/lib/libcrypto/bio/bio_err.c b/src/lib/libcrypto/bio/bio_err.c index 86e9a3082b..cd6f787a6b 100644 --- a/src/lib/libcrypto/bio/bio_err.c +++ b/src/lib/libcrypto/bio/bio_err.c | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | * are met: | 7 | * are met: |
| 8 | * | 8 | * |
| 9 | * 1. Redistributions of source code must retain the above copyright | 9 | * 1. Redistributions of source code must retain the above copyright |
| 10 | * notice, this list of conditions and the following disclaimer. | 10 | * notice, this list of conditions and the following disclaimer. |
| 11 | * | 11 | * |
| 12 | * 2. Redistributions in binary form must reproduce the above copyright | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
| 13 | * notice, this list of conditions and the following disclaimer in | 13 | * notice, this list of conditions and the following disclaimer in |
| @@ -68,7 +68,7 @@ | |||
| 68 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_BIO,func,0) | 68 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_BIO,func,0) |
| 69 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_BIO,0,reason) | 69 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_BIO,0,reason) |
| 70 | 70 | ||
| 71 | static ERR_STRING_DATA BIO_str_functs[]= { | 71 | static ERR_STRING_DATA BIO_str_functs[] = { |
| 72 | {ERR_FUNC(BIO_F_ACPT_STATE), "ACPT_STATE"}, | 72 | {ERR_FUNC(BIO_F_ACPT_STATE), "ACPT_STATE"}, |
| 73 | {ERR_FUNC(BIO_F_BIO_ACCEPT), "BIO_accept"}, | 73 | {ERR_FUNC(BIO_F_BIO_ACCEPT), "BIO_accept"}, |
| 74 | {ERR_FUNC(BIO_F_BIO_BER_GET_HEADER), "BIO_BER_GET_HEADER"}, | 74 | {ERR_FUNC(BIO_F_BIO_BER_GET_HEADER), "BIO_BER_GET_HEADER"}, |
| @@ -105,7 +105,7 @@ static ERR_STRING_DATA BIO_str_functs[]= { | |||
| 105 | {0, NULL} | 105 | {0, NULL} |
| 106 | }; | 106 | }; |
| 107 | 107 | ||
| 108 | static ERR_STRING_DATA BIO_str_reasons[]= { | 108 | static ERR_STRING_DATA BIO_str_reasons[] = { |
| 109 | {ERR_REASON(BIO_R_ACCEPT_ERROR) , "accept error"}, | 109 | {ERR_REASON(BIO_R_ACCEPT_ERROR) , "accept error"}, |
| 110 | {ERR_REASON(BIO_R_BAD_FOPEN_MODE) , "bad fopen mode"}, | 110 | {ERR_REASON(BIO_R_BAD_FOPEN_MODE) , "bad fopen mode"}, |
| 111 | {ERR_REASON(BIO_R_BAD_HOSTNAME_LOOKUP) , "bad hostname lookup"}, | 111 | {ERR_REASON(BIO_R_BAD_HOSTNAME_LOOKUP) , "bad hostname lookup"}, |
diff --git a/src/lib/libcrypto/bio/bio_lib.c b/src/lib/libcrypto/bio/bio_lib.c index 9e8fb7913a..90f1b1c1ef 100644 --- a/src/lib/libcrypto/bio/bio_lib.c +++ b/src/lib/libcrypto/bio/bio_lib.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,7 +49,7 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
| @@ -338,8 +338,8 @@ BIO_indent(BIO *b, int indent, int max) | |||
| 338 | if (indent > max) | 338 | if (indent > max) |
| 339 | indent = max; | 339 | indent = max; |
| 340 | while (indent--) | 340 | while (indent--) |
| 341 | if (BIO_puts(b, " ") != 1) | 341 | if (BIO_puts(b, " ") != 1) |
| 342 | return 0; | 342 | return 0; |
| 343 | return 1; | 343 | return 1; |
| 344 | } | 344 | } |
| 345 | 345 | ||
| @@ -349,7 +349,7 @@ BIO_int_ctrl(BIO *b, int cmd, long larg, int iarg) | |||
| 349 | int i; | 349 | int i; |
| 350 | 350 | ||
| 351 | i = iarg; | 351 | i = iarg; |
| 352 | return (BIO_ctrl(b, cmd, larg,(char *)&i)); | 352 | return (BIO_ctrl(b, cmd, larg, (char *)&i)); |
| 353 | } | 353 | } |
| 354 | 354 | ||
| 355 | char | 355 | char |
| @@ -357,7 +357,7 @@ char | |||
| 357 | { | 357 | { |
| 358 | char *p = NULL; | 358 | char *p = NULL; |
| 359 | 359 | ||
| 360 | if (BIO_ctrl(b, cmd, larg,(char *)&p) <= 0) | 360 | if (BIO_ctrl(b, cmd, larg, (char *)&p) <= 0) |
| 361 | return (NULL); | 361 | return (NULL); |
| 362 | else | 362 | else |
| 363 | return (p); | 363 | return (p); |
| @@ -408,13 +408,13 @@ BIO_callback_ctrl(BIO *b, int cmd, | |||
| 408 | cb = b->callback; | 408 | cb = b->callback; |
| 409 | 409 | ||
| 410 | if ((cb != NULL) && | 410 | if ((cb != NULL) && |
| 411 | ((ret = cb(b, BIO_CB_CTRL,(void *)&fp, cmd, 0, 1L)) <= 0)) | 411 | ((ret = cb(b, BIO_CB_CTRL, (void *)&fp, cmd, 0, 1L)) <= 0)) |
| 412 | return (ret); | 412 | return (ret); |
| 413 | 413 | ||
| 414 | ret = b->method->callback_ctrl(b, cmd, fp); | 414 | ret = b->method->callback_ctrl(b, cmd, fp); |
| 415 | 415 | ||
| 416 | if (cb != NULL) | 416 | if (cb != NULL) |
| 417 | ret = cb(b, BIO_CB_CTRL|BIO_CB_RETURN,(void *)&fp, cmd, 0, ret); | 417 | ret = cb(b, BIO_CB_CTRL|BIO_CB_RETURN, (void *)&fp, cmd, 0, ret); |
| 418 | return (ret); | 418 | return (ret); |
| 419 | } | 419 | } |
| 420 | 420 | ||
| @@ -444,7 +444,7 @@ BIO | |||
| 444 | return (bio); | 444 | return (bio); |
| 445 | lb = b; | 445 | lb = b; |
| 446 | while (lb->next_bio != NULL) | 446 | while (lb->next_bio != NULL) |
| 447 | lb = lb->next_bio; | 447 | lb = lb->next_bio; |
| 448 | lb->next_bio = bio; | 448 | lb->next_bio = bio; |
| 449 | if (bio != NULL) | 449 | if (bio != NULL) |
| 450 | bio->prev_bio = lb; | 450 | bio->prev_bio = lb; |
| @@ -482,8 +482,9 @@ BIO | |||
| 482 | 482 | ||
| 483 | b = last = bio; | 483 | b = last = bio; |
| 484 | for (;;) { | 484 | for (;;) { |
| 485 | if (!BIO_should_retry(b)) break; | 485 | if (!BIO_should_retry(b)) |
| 486 | last = b; | 486 | break; |
| 487 | last = b; | ||
| 487 | b = b->next_bio; | 488 | b = b->next_bio; |
| 488 | if (b == NULL) | 489 | if (b == NULL) |
| 489 | break; | 490 | break; |
| @@ -552,8 +553,9 @@ BIO | |||
| 552 | BIO *ret = NULL, *eoc = NULL, *bio, *new_bio; | 553 | BIO *ret = NULL, *eoc = NULL, *bio, *new_bio; |
| 553 | 554 | ||
| 554 | for (bio = in; bio != NULL; bio = bio->next_bio) { | 555 | for (bio = in; bio != NULL; bio = bio->next_bio) { |
| 555 | if ((new_bio = BIO_new(bio->method)) == NULL) goto err; | 556 | if ((new_bio = BIO_new(bio->method)) == NULL) |
| 556 | new_bio->callback = bio->callback; | 557 | goto err; |
| 558 | new_bio->callback = bio->callback; | ||
| 557 | new_bio->cb_arg = bio->cb_arg; | 559 | new_bio->cb_arg = bio->cb_arg; |
| 558 | new_bio->init = bio->init; | 560 | new_bio->init = bio->init; |
| 559 | new_bio->shutdown = bio->shutdown; | 561 | new_bio->shutdown = bio->shutdown; |
| @@ -562,7 +564,7 @@ BIO | |||
| 562 | /* This will let SSL_s_sock() work with stdin/stdout */ | 564 | /* This will let SSL_s_sock() work with stdin/stdout */ |
| 563 | new_bio->num = bio->num; | 565 | new_bio->num = bio->num; |
| 564 | 566 | ||
| 565 | if (!BIO_dup_state(bio,(char *)new_bio)) { | 567 | if (!BIO_dup_state(bio, (char *)new_bio)) { |
| 566 | BIO_free(new_bio); | 568 | BIO_free(new_bio); |
| 567 | goto err; | 569 | goto err; |
| 568 | } | 570 | } |
diff --git a/src/lib/libssl/src/crypto/bio/b_dump.c b/src/lib/libssl/src/crypto/bio/b_dump.c index 32d523563e..090cfc2b5f 100644 --- a/src/lib/libssl/src/crypto/bio/b_dump.c +++ b/src/lib/libssl/src/crypto/bio/b_dump.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,14 +49,14 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
| 56 | * [including the GNU Public Licence.] | 56 | * [including the GNU Public Licence.] |
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | /* | 59 | /* |
| 60 | * Stolen from tjh's ssl/ssl_trc.c stuff. | 60 | * Stolen from tjh's ssl/ssl_trc.c stuff. |
| 61 | */ | 61 | */ |
| 62 | 62 | ||
diff --git a/src/lib/libssl/src/crypto/bio/b_print.c b/src/lib/libssl/src/crypto/bio/b_print.c index b3b0d45ee6..55a5ca1a32 100644 --- a/src/lib/libssl/src/crypto/bio/b_print.c +++ b/src/lib/libssl/src/crypto/bio/b_print.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,7 +49,7 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
| @@ -63,7 +63,7 @@ | |||
| 63 | # endif | 63 | # endif |
| 64 | #endif | 64 | #endif |
| 65 | 65 | ||
| 66 | /* | 66 | /* |
| 67 | * Stolen from tjh's ssl/ssl_trc.c stuff. | 67 | * Stolen from tjh's ssl/ssl_trc.c stuff. |
| 68 | */ | 68 | */ |
| 69 | 69 | ||
| @@ -336,7 +336,7 @@ _dopr(char **sbuffer, char **buffer, size_t *maxlen, size_t *retlen, | |||
| 336 | else | 336 | else |
| 337 | fvalue = va_arg(args, double); | 337 | fvalue = va_arg(args, double); |
| 338 | fmtfp(sbuffer, buffer, &currlen, maxlen, | 338 | fmtfp(sbuffer, buffer, &currlen, maxlen, |
| 339 | fvalue, min, max, flags); | 339 | fvalue, min, max, flags); |
| 340 | break; | 340 | break; |
| 341 | case 'E': | 341 | case 'E': |
| 342 | flags |= DP_F_UP; | 342 | flags |= DP_F_UP; |
| @@ -356,7 +356,7 @@ _dopr(char **sbuffer, char **buffer, size_t *maxlen, size_t *retlen, | |||
| 356 | break; | 356 | break; |
| 357 | case 'c': | 357 | case 'c': |
| 358 | doapr_outch(sbuffer, buffer, &currlen, maxlen, | 358 | doapr_outch(sbuffer, buffer, &currlen, maxlen, |
| 359 | va_arg(args, int)); | 359 | va_arg(args, int)); |
| 360 | break; | 360 | break; |
| 361 | case 's': | 361 | case 's': |
| 362 | strvalue = va_arg(args, char *); | 362 | strvalue = va_arg(args, char *); |
| @@ -671,7 +671,7 @@ fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, | |||
| 671 | doapr_outch(sbuffer, buffer, currlen, maxlen, signvalue); | 671 | doapr_outch(sbuffer, buffer, currlen, maxlen, signvalue); |
| 672 | 672 | ||
| 673 | while (iplace > 0) | 673 | while (iplace > 0) |
| 674 | doapr_outch(sbuffer, buffer, currlen, maxlen, iconvert[--iplace]); | 674 | doapr_outch(sbuffer, buffer, currlen, maxlen, iconvert[--iplace]); |
| 675 | 675 | ||
| 676 | /* | 676 | /* |
| 677 | * Decimal point. This should probably use locale to find the correct | 677 | * Decimal point. This should probably use locale to find the correct |
| @@ -681,7 +681,7 @@ fmtfp(char **sbuffer, char **buffer, size_t *currlen, size_t *maxlen, | |||
| 681 | doapr_outch(sbuffer, buffer, currlen, maxlen, '.'); | 681 | doapr_outch(sbuffer, buffer, currlen, maxlen, '.'); |
| 682 | 682 | ||
| 683 | while (fplace > 0) | 683 | while (fplace > 0) |
| 684 | doapr_outch(sbuffer, buffer, currlen, maxlen, fconvert[--fplace]); | 684 | doapr_outch(sbuffer, buffer, currlen, maxlen, fconvert[--fplace]); |
| 685 | } | 685 | } |
| 686 | while (zpadlen > 0) { | 686 | while (zpadlen > 0) { |
| 687 | doapr_outch(sbuffer, buffer, currlen, maxlen, '0'); | 687 | doapr_outch(sbuffer, buffer, currlen, maxlen, '0'); |
diff --git a/src/lib/libssl/src/crypto/bio/b_sock.c b/src/lib/libssl/src/crypto/bio/b_sock.c index 2a9159ec55..cd62f889ab 100644 --- a/src/lib/libssl/src/crypto/bio/b_sock.c +++ b/src/lib/libssl/src/crypto/bio/b_sock.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,7 +49,7 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
| @@ -240,7 +240,7 @@ BIO_sock_error(int sock) | |||
| 240 | * a cast it will choke the compiler: if you do have a cast then | 240 | * a cast it will choke the compiler: if you do have a cast then |
| 241 | * you can either go for (char *) or (void *). | 241 | * you can either go for (char *) or (void *). |
| 242 | */ | 242 | */ |
| 243 | i = getsockopt(sock, SOL_SOCKET, SO_ERROR,(void *)&j,(void *)&size); | 243 | i = getsockopt(sock, SOL_SOCKET, SO_ERROR, (void *)&j, (void *)&size); |
| 244 | if (i < 0) | 244 | if (i < 0) |
| 245 | return (1); | 245 | return (1); |
| 246 | else | 246 | else |
| @@ -317,12 +317,14 @@ static struct hostent | |||
| 317 | memset(ret->h_addr_list, 0, i*sizeof(char *)); | 317 | memset(ret->h_addr_list, 0, i*sizeof(char *)); |
| 318 | 318 | ||
| 319 | j = strlen(a->h_name) + 1; | 319 | j = strlen(a->h_name) + 1; |
| 320 | if ((ret->h_name = OPENSSL_malloc(j)) == NULL) goto err; | 320 | if ((ret->h_name = OPENSSL_malloc(j)) == NULL) |
| 321 | memcpy((char *)ret->h_name, a->h_name, j); | 321 | goto err; |
| 322 | memcpy((char *)ret->h_name, a->h_name, j); | ||
| 322 | for (i = 0; a->h_aliases[i] != NULL; i++) { | 323 | for (i = 0; a->h_aliases[i] != NULL; i++) { |
| 323 | j = strlen(a->h_aliases[i]) + 1; | 324 | j = strlen(a->h_aliases[i]) + 1; |
| 324 | if ((ret->h_aliases[i] = OPENSSL_malloc(j)) == NULL) goto err; | 325 | if ((ret->h_aliases[i] = OPENSSL_malloc(j)) == NULL) |
| 325 | memcpy(ret->h_aliases[i], a->h_aliases[i], j); | 326 | goto err; |
| 327 | memcpy(ret->h_aliases[i], a->h_aliases[i], j); | ||
| 326 | } | 328 | } |
| 327 | ret->h_length = a->h_length; | 329 | ret->h_length = a->h_length; |
| 328 | ret->h_addrtype = a->h_addrtype; | 330 | ret->h_addrtype = a->h_addrtype; |
| @@ -367,7 +369,8 @@ ghbn_free(struct hostent *a) | |||
| 367 | #endif | 369 | #endif |
| 368 | 370 | ||
| 369 | struct hostent | 371 | struct hostent |
| 370 | *BIO_gethostbyname(const char *name) { | 372 | *BIO_gethostbyname(const char *name) |
| 373 | { | ||
| 371 | #if 1 | 374 | #if 1 |
| 372 | /* Caching gethostbyname() results forever is wrong, | 375 | /* Caching gethostbyname() results forever is wrong, |
| 373 | * so we have to let the true gethostbyname() worry about this */ | 376 | * so we have to let the true gethostbyname() worry about this */ |
| @@ -504,7 +507,7 @@ BIO_socket_ioctl(int fd, long type, void *arg) | |||
| 504 | int i; | 507 | int i; |
| 505 | 508 | ||
| 506 | #ifdef __DJGPP__ | 509 | #ifdef __DJGPP__ |
| 507 | i = ioctl(fd, type,(char *)arg); | 510 | i = ioctl(fd, type, (char *)arg); |
| 508 | #else | 511 | #else |
| 509 | # if defined(OPENSSL_SYS_VMS) | 512 | # if defined(OPENSSL_SYS_VMS) |
| 510 | /* 2011-02-18 SMS. | 513 | /* 2011-02-18 SMS. |
| @@ -562,7 +565,7 @@ get_ip(const char *str, unsigned char ip[4]) | |||
| 562 | num++; | 565 | num++; |
| 563 | ok = 0; | 566 | ok = 0; |
| 564 | } else if (c == '\0' && (num == 3) && ok) | 567 | } else if (c == '\0' && (num == 3) && ok) |
| 565 | break; | 568 | break; |
| 566 | else | 569 | else |
| 567 | return (0); | 570 | return (0); |
| 568 | } | 571 | } |
| @@ -618,8 +621,8 @@ BIO_get_accept_socket(char *host, int bind_mode) | |||
| 618 | static union { | 621 | static union { |
| 619 | void *p; | 622 | void *p; |
| 620 | int (WSAAPI *f)(const char *, const char *, | 623 | int (WSAAPI *f)(const char *, const char *, |
| 621 | const struct addrinfo *, | 624 | const struct addrinfo *, |
| 622 | struct addrinfo **); | 625 | struct addrinfo **); |
| 623 | } p_getaddrinfo = {NULL}; | 626 | } p_getaddrinfo = {NULL}; |
| 624 | static union { | 627 | static union { |
| 625 | void *p; | 628 | void *p; |
| @@ -630,9 +633,10 @@ BIO_get_accept_socket(char *host, int bind_mode) | |||
| 630 | if (p_getaddrinfo.p == NULL) { | 633 | if (p_getaddrinfo.p == NULL) { |
| 631 | if ((p_getaddrinfo.p = DSO_global_lookup("getaddrinfo"))==NULL || | 634 | if ((p_getaddrinfo.p = DSO_global_lookup("getaddrinfo"))==NULL || |
| 632 | (p_freeaddrinfo.p = DSO_global_lookup("freeaddrinfo"))==NULL) | 635 | (p_freeaddrinfo.p = DSO_global_lookup("freeaddrinfo"))==NULL) |
| 633 | p_getaddrinfo.p = (void*) - 1; | 636 | p_getaddrinfo.p = (void*) - 1; |
| 634 | } | 637 | } |
| 635 | if (p_getaddrinfo.p == (void *) - 1) break; | 638 | if (p_getaddrinfo.p == (void *) - 1) |
| 639 | break; | ||
| 636 | 640 | ||
| 637 | /* '::port' enforces IPv6 wildcard listener. Some OSes, | 641 | /* '::port' enforces IPv6 wildcard listener. Some OSes, |
| 638 | * e.g. Solaris, default to IPv6 without any hint. Also | 642 | * e.g. Solaris, default to IPv6 without any hint. Also |
| @@ -680,8 +684,7 @@ BIO_get_accept_socket(char *host, int bind_mode) | |||
| 680 | else { | 684 | else { |
| 681 | if (!BIO_get_host_ip(h, &(ip[0]))) | 685 | if (!BIO_get_host_ip(h, &(ip[0]))) |
| 682 | goto err; | 686 | goto err; |
| 683 | l = (unsigned long) | 687 | l = (unsigned long)((unsigned long)ip[0]<<24L)| |
| 684 | ((unsigned long)ip[0]<<24L)| | ||
| 685 | ((unsigned long)ip[1]<<16L)| | 688 | ((unsigned long)ip[1]<<16L)| |
| 686 | ((unsigned long)ip[2]<< 8L)| | 689 | ((unsigned long)ip[2]<< 8L)| |
| 687 | ((unsigned long)ip[3]); | 690 | ((unsigned long)ip[3]); |
| @@ -701,7 +704,7 @@ again: | |||
| 701 | if (bind_mode == BIO_BIND_REUSEADDR) { | 704 | if (bind_mode == BIO_BIND_REUSEADDR) { |
| 702 | int i = 1; | 705 | int i = 1; |
| 703 | 706 | ||
| 704 | ret = setsockopt(s, SOL_SOCKET, SO_REUSEADDR,(char *)&i, sizeof(i)); | 707 | ret = setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&i, sizeof(i)); |
| 705 | bind_mode = BIO_BIND_NORMAL; | 708 | bind_mode = BIO_BIND_NORMAL; |
| 706 | } | 709 | } |
| 707 | #endif | 710 | #endif |
| @@ -709,8 +712,7 @@ again: | |||
| 709 | #ifdef SO_REUSEADDR | 712 | #ifdef SO_REUSEADDR |
| 710 | err_num = errno; | 713 | err_num = errno; |
| 711 | if ((bind_mode == BIO_BIND_REUSEADDR_IF_UNUSED) && | 714 | if ((bind_mode == BIO_BIND_REUSEADDR_IF_UNUSED) && |
| 712 | (err_num == EADDRINUSE)) | 715 | (err_num == EADDRINUSE)) { |
| 713 | { | ||
| 714 | client = server; | 716 | client = server; |
| 715 | if (h == NULL || strcmp(h, "*") == 0) { | 717 | if (h == NULL || strcmp(h, "*") == 0) { |
| 716 | #if OPENSSL_USE_IPV6 | 718 | #if OPENSSL_USE_IPV6 |
| @@ -807,15 +809,16 @@ BIO_accept(int sock, char **addr) | |||
| 807 | sa.len.s = 0; | 809 | sa.len.s = 0; |
| 808 | sa.len.i = sizeof(sa.from); | 810 | sa.len.i = sizeof(sa.from); |
| 809 | memset(&sa.from, 0, sizeof(sa.from)); | 811 | memset(&sa.from, 0, sizeof(sa.from)); |
| 810 | ret = accept(sock, &sa.from.sa,(void *)&sa.len); | 812 | ret = accept(sock, &sa.from.sa, (void *)&sa.len); |
| 811 | if (sizeof(sa.len.i) != sizeof(sa.len.s) && sa.len.i == 0) { | 813 | if (sizeof(sa.len.i) != sizeof(sa.len.s) && sa.len.i == 0) { |
| 812 | OPENSSL_assert(sa.len.s <= sizeof(sa.from)); | 814 | OPENSSL_assert(sa.len.s <= sizeof(sa.from)); |
| 813 | sa.len.i = (int)sa.len.s; | 815 | sa.len.i = (int)sa.len.s; |
| 814 | /* use sa.len.i from this point */ | 816 | /* use sa.len.i from this point */ |
| 815 | } | 817 | } |
| 816 | if (ret == -1) { | 818 | if (ret == -1) { |
| 817 | if (BIO_sock_should_retry(ret)) return -2; | 819 | if (BIO_sock_should_retry(ret)) |
| 818 | SYSerr(SYS_F_ACCEPT, errno); | 820 | return -2; |
| 821 | SYSerr(SYS_F_ACCEPT, errno); | ||
| 819 | BIOerr(BIO_F_BIO_ACCEPT, BIO_R_ACCEPT_ERROR); | 822 | BIOerr(BIO_F_BIO_ACCEPT, BIO_R_ACCEPT_ERROR); |
| 820 | goto end; | 823 | goto end; |
| 821 | } | 824 | } |
| @@ -830,7 +833,7 @@ BIO_accept(int sock, char **addr) | |||
| 830 | static union { | 833 | static union { |
| 831 | void *p; | 834 | void *p; |
| 832 | int (WSAAPI *f)(const struct sockaddr *, | 835 | int (WSAAPI *f)(const struct sockaddr *, |
| 833 | size_t/*socklen_t*/, char *, size_t, | 836 | size_t/*socklen_t*/, char *, size_t, |
| 834 | char *, size_t, int); | 837 | char *, size_t, int); |
| 835 | } p_getnameinfo = {NULL}; | 838 | } p_getnameinfo = {NULL}; |
| 836 | /* 2nd argument to getnameinfo is specified to | 839 | /* 2nd argument to getnameinfo is specified to |
| @@ -900,7 +903,7 @@ BIO_set_tcp_ndelay(int s, int on) | |||
| 900 | #endif | 903 | #endif |
| 901 | #endif | 904 | #endif |
| 902 | 905 | ||
| 903 | ret = setsockopt(s, opt, TCP_NODELAY,(char *)&on, sizeof(on)); | 906 | ret = setsockopt(s, opt, TCP_NODELAY, (char *)&on, sizeof(on)); |
| 904 | #endif | 907 | #endif |
| 905 | return (ret == 0); | 908 | return (ret == 0); |
| 906 | } | 909 | } |
diff --git a/src/lib/libssl/src/crypto/bio/bf_buff.c b/src/lib/libssl/src/crypto/bio/bf_buff.c index 9518cf977e..937a1c58d5 100644 --- a/src/lib/libssl/src/crypto/bio/bf_buff.c +++ b/src/lib/libssl/src/crypto/bio/bf_buff.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,7 +49,7 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
| @@ -247,7 +247,7 @@ start: | |||
| 247 | /* we now have a full buffer needing flushing */ | 247 | /* we now have a full buffer needing flushing */ |
| 248 | for (;;) { | 248 | for (;;) { |
| 249 | i = BIO_write(b->next_bio, &(ctx->obuf[ctx->obuf_off]), | 249 | i = BIO_write(b->next_bio, &(ctx->obuf[ctx->obuf_off]), |
| 250 | ctx->obuf_len); | 250 | ctx->obuf_len); |
| 251 | if (i <= 0) { | 251 | if (i <= 0) { |
| 252 | BIO_copy_next_retry(b); | 252 | BIO_copy_next_retry(b); |
| 253 | 253 | ||
| @@ -283,7 +283,7 @@ start: | |||
| 283 | return (num); | 283 | return (num); |
| 284 | } | 284 | } |
| 285 | 285 | ||
| 286 | /* copy the rest into the buffer since we have only a small | 286 | /* copy the rest into the buffer since we have only a small |
| 287 | * amount left */ | 287 | * amount left */ |
| 288 | goto start; | 288 | goto start; |
| 289 | } | 289 | } |
| @@ -348,7 +348,7 @@ buffer_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
| 348 | } | 348 | } |
| 349 | ctx->ibuf_off = 0; | 349 | ctx->ibuf_off = 0; |
| 350 | ctx->ibuf_len = (int)num; | 350 | ctx->ibuf_len = (int)num; |
| 351 | memcpy(ctx->ibuf, ptr,(int)num); | 351 | memcpy(ctx->ibuf, ptr, (int)num); |
| 352 | ret = 1; | 352 | ret = 1; |
| 353 | break; | 353 | break; |
| 354 | case BIO_C_SET_BUFF_SIZE: | 354 | case BIO_C_SET_BUFF_SIZE: |
| @@ -417,8 +417,8 @@ buffer_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
| 417 | BIO_clear_retry_flags(b); | 417 | BIO_clear_retry_flags(b); |
| 418 | if (ctx->obuf_len > 0) { | 418 | if (ctx->obuf_len > 0) { |
| 419 | r = BIO_write(b->next_bio, | 419 | r = BIO_write(b->next_bio, |
| 420 | &(ctx->obuf[ctx->obuf_off]), | 420 | &(ctx->obuf[ctx->obuf_off]), |
| 421 | ctx->obuf_len); | 421 | ctx->obuf_len); |
| 422 | #if 0 | 422 | #if 0 |
| 423 | fprintf(stderr, "FLUSH [%3d] %3d -> %3d\n", ctx->obuf_off, ctx->obuf_len, r); | 423 | fprintf(stderr, "FLUSH [%3d] %3d -> %3d\n", ctx->obuf_off, ctx->obuf_len, r); |
| 424 | #endif | 424 | #endif |
diff --git a/src/lib/libssl/src/crypto/bio/bf_lbuf.c b/src/lib/libssl/src/crypto/bio/bf_lbuf.c index 838839f1bf..006ed9d91c 100644 --- a/src/lib/libssl/src/crypto/bio/bf_lbuf.c +++ b/src/lib/libssl/src/crypto/bio/bf_lbuf.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,7 +49,7 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
| @@ -333,7 +333,7 @@ linebuffer_ctrl(BIO *b, int cmd, long num, void *ptr) | |||
| 333 | BIO_clear_retry_flags(b); | 333 | BIO_clear_retry_flags(b); |
| 334 | if (ctx->obuf_len > 0) { | 334 | if (ctx->obuf_len > 0) { |
| 335 | r = BIO_write(b->next_bio, | 335 | r = BIO_write(b->next_bio, |
| 336 | ctx->obuf, ctx->obuf_len); | 336 | ctx->obuf, ctx->obuf_len); |
| 337 | #if 0 | 337 | #if 0 |
| 338 | fprintf(stderr, "FLUSH %3d -> %3d\n", ctx->obuf_len, r); | 338 | fprintf(stderr, "FLUSH %3d -> %3d\n", ctx->obuf_len, r); |
| 339 | #endif | 339 | #endif |
diff --git a/src/lib/libssl/src/crypto/bio/bf_nbio.c b/src/lib/libssl/src/crypto/bio/bf_nbio.c index 76f8f31950..d181f518ec 100644 --- a/src/lib/libssl/src/crypto/bio/bf_nbio.c +++ b/src/lib/libssl/src/crypto/bio/bf_nbio.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,7 +49,7 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
diff --git a/src/lib/libssl/src/crypto/bio/bf_null.c b/src/lib/libssl/src/crypto/bio/bf_null.c index 354731c0c7..ada677c91e 100644 --- a/src/lib/libssl/src/crypto/bio/bf_null.c +++ b/src/lib/libssl/src/crypto/bio/bf_null.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,7 +49,7 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
diff --git a/src/lib/libssl/src/crypto/bio/bio_cb.c b/src/lib/libssl/src/crypto/bio/bio_cb.c index 3e110f3751..00f41b1de1 100644 --- a/src/lib/libssl/src/crypto/bio/bio_cb.c +++ b/src/lib/libssl/src/crypto/bio/bio_cb.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,7 +49,7 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
| @@ -87,7 +87,7 @@ BIO_debug_callback(BIO *bio, int cmd, const char *argp, int argi, long argl, | |||
| 87 | if (bio->method->type & BIO_TYPE_DESCRIPTOR) | 87 | if (bio->method->type & BIO_TYPE_DESCRIPTOR) |
| 88 | (void) snprintf(p, p_maxlen, | 88 | (void) snprintf(p, p_maxlen, |
| 89 | "read(%d,%lu) - %s fd=%d\n", | 89 | "read(%d,%lu) - %s fd=%d\n", |
| 90 | bio->num,(unsigned long)argi, | 90 | bio->num, (unsigned long)argi, |
| 91 | bio->method->name, bio->num); | 91 | bio->method->name, bio->num); |
| 92 | else | 92 | else |
| 93 | (void) snprintf(p, p_maxlen, "read(%d,%lu) - %s\n", | 93 | (void) snprintf(p, p_maxlen, "read(%d,%lu) - %s\n", |
diff --git a/src/lib/libssl/src/crypto/bio/bio_err.c b/src/lib/libssl/src/crypto/bio/bio_err.c index 86e9a3082b..cd6f787a6b 100644 --- a/src/lib/libssl/src/crypto/bio/bio_err.c +++ b/src/lib/libssl/src/crypto/bio/bio_err.c | |||
| @@ -7,7 +7,7 @@ | |||
| 7 | * are met: | 7 | * are met: |
| 8 | * | 8 | * |
| 9 | * 1. Redistributions of source code must retain the above copyright | 9 | * 1. Redistributions of source code must retain the above copyright |
| 10 | * notice, this list of conditions and the following disclaimer. | 10 | * notice, this list of conditions and the following disclaimer. |
| 11 | * | 11 | * |
| 12 | * 2. Redistributions in binary form must reproduce the above copyright | 12 | * 2. Redistributions in binary form must reproduce the above copyright |
| 13 | * notice, this list of conditions and the following disclaimer in | 13 | * notice, this list of conditions and the following disclaimer in |
| @@ -68,7 +68,7 @@ | |||
| 68 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_BIO,func,0) | 68 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_BIO,func,0) |
| 69 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_BIO,0,reason) | 69 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_BIO,0,reason) |
| 70 | 70 | ||
| 71 | static ERR_STRING_DATA BIO_str_functs[]= { | 71 | static ERR_STRING_DATA BIO_str_functs[] = { |
| 72 | {ERR_FUNC(BIO_F_ACPT_STATE), "ACPT_STATE"}, | 72 | {ERR_FUNC(BIO_F_ACPT_STATE), "ACPT_STATE"}, |
| 73 | {ERR_FUNC(BIO_F_BIO_ACCEPT), "BIO_accept"}, | 73 | {ERR_FUNC(BIO_F_BIO_ACCEPT), "BIO_accept"}, |
| 74 | {ERR_FUNC(BIO_F_BIO_BER_GET_HEADER), "BIO_BER_GET_HEADER"}, | 74 | {ERR_FUNC(BIO_F_BIO_BER_GET_HEADER), "BIO_BER_GET_HEADER"}, |
| @@ -105,7 +105,7 @@ static ERR_STRING_DATA BIO_str_functs[]= { | |||
| 105 | {0, NULL} | 105 | {0, NULL} |
| 106 | }; | 106 | }; |
| 107 | 107 | ||
| 108 | static ERR_STRING_DATA BIO_str_reasons[]= { | 108 | static ERR_STRING_DATA BIO_str_reasons[] = { |
| 109 | {ERR_REASON(BIO_R_ACCEPT_ERROR) , "accept error"}, | 109 | {ERR_REASON(BIO_R_ACCEPT_ERROR) , "accept error"}, |
| 110 | {ERR_REASON(BIO_R_BAD_FOPEN_MODE) , "bad fopen mode"}, | 110 | {ERR_REASON(BIO_R_BAD_FOPEN_MODE) , "bad fopen mode"}, |
| 111 | {ERR_REASON(BIO_R_BAD_HOSTNAME_LOOKUP) , "bad hostname lookup"}, | 111 | {ERR_REASON(BIO_R_BAD_HOSTNAME_LOOKUP) , "bad hostname lookup"}, |
diff --git a/src/lib/libssl/src/crypto/bio/bio_lib.c b/src/lib/libssl/src/crypto/bio/bio_lib.c index 9e8fb7913a..90f1b1c1ef 100644 --- a/src/lib/libssl/src/crypto/bio/bio_lib.c +++ b/src/lib/libssl/src/crypto/bio/bio_lib.c | |||
| @@ -5,21 +5,21 @@ | |||
| 5 | * This package is an SSL implementation written | 5 | * This package is an SSL implementation written |
| 6 | * by Eric Young (eay@cryptsoft.com). | 6 | * by Eric Young (eay@cryptsoft.com). |
| 7 | * The implementation was written so as to conform with Netscapes SSL. | 7 | * The implementation was written so as to conform with Netscapes SSL. |
| 8 | * | 8 | * |
| 9 | * This library is free for commercial and non-commercial use as long as | 9 | * This library is free for commercial and non-commercial use as long as |
| 10 | * the following conditions are aheared to. The following conditions | 10 | * the following conditions are aheared to. The following conditions |
| 11 | * apply to all code found in this distribution, be it the RC4, RSA, | 11 | * apply to all code found in this distribution, be it the RC4, RSA, |
| 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | 12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation |
| 13 | * included with this distribution is covered by the same copyright terms | 13 | * included with this distribution is covered by the same copyright terms |
| 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | 14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). |
| 15 | * | 15 | * |
| 16 | * Copyright remains Eric Young's, and as such any Copyright notices in | 16 | * Copyright remains Eric Young's, and as such any Copyright notices in |
| 17 | * the code are not to be removed. | 17 | * the code are not to be removed. |
| 18 | * If this package is used in a product, Eric Young should be given attribution | 18 | * If this package is used in a product, Eric Young should be given attribution |
| 19 | * as the author of the parts of the library used. | 19 | * as the author of the parts of the library used. |
| 20 | * This can be in the form of a textual message at program startup or | 20 | * This can be in the form of a textual message at program startup or |
| 21 | * in documentation (online or textual) provided with the package. | 21 | * in documentation (online or textual) provided with the package. |
| 22 | * | 22 | * |
| 23 | * Redistribution and use in source and binary forms, with or without | 23 | * Redistribution and use in source and binary forms, with or without |
| 24 | * modification, are permitted provided that the following conditions | 24 | * modification, are permitted provided that the following conditions |
| 25 | * are met: | 25 | * are met: |
| @@ -34,10 +34,10 @@ | |||
| 34 | * Eric Young (eay@cryptsoft.com)" | 34 | * Eric Young (eay@cryptsoft.com)" |
| 35 | * The word 'cryptographic' can be left out if the rouines from the library | 35 | * The word 'cryptographic' can be left out if the rouines from the library |
| 36 | * being used are not cryptographic related :-). | 36 | * being used are not cryptographic related :-). |
| 37 | * 4. If you include any Windows specific code (or a derivative thereof) from | 37 | * 4. If you include any Windows specific code (or a derivative thereof) from |
| 38 | * the apps directory (application code) you must include an acknowledgement: | 38 | * the apps directory (application code) you must include an acknowledgement: |
| 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | 39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" |
| 40 | * | 40 | * |
| 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | 41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND |
| 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | 42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE |
| 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | 43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE |
| @@ -49,7 +49,7 @@ | |||
| 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | 49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY |
| 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
| 51 | * SUCH DAMAGE. | 51 | * SUCH DAMAGE. |
| 52 | * | 52 | * |
| 53 | * The licence and distribution terms for any publically available version or | 53 | * The licence and distribution terms for any publically available version or |
| 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | 54 | * derivative of this code cannot be changed. i.e. this code cannot simply be |
| 55 | * copied and put under another distribution licence | 55 | * copied and put under another distribution licence |
| @@ -338,8 +338,8 @@ BIO_indent(BIO *b, int indent, int max) | |||
| 338 | if (indent > max) | 338 | if (indent > max) |
| 339 | indent = max; | 339 | indent = max; |
| 340 | while (indent--) | 340 | while (indent--) |
| 341 | if (BIO_puts(b, " ") != 1) | 341 | if (BIO_puts(b, " ") != 1) |
| 342 | return 0; | 342 | return 0; |
| 343 | return 1; | 343 | return 1; |
| 344 | } | 344 | } |
| 345 | 345 | ||
| @@ -349,7 +349,7 @@ BIO_int_ctrl(BIO *b, int cmd, long larg, int iarg) | |||
| 349 | int i; | 349 | int i; |
| 350 | 350 | ||
| 351 | i = iarg; | 351 | i = iarg; |
| 352 | return (BIO_ctrl(b, cmd, larg,(char *)&i)); | 352 | return (BIO_ctrl(b, cmd, larg, (char *)&i)); |
| 353 | } | 353 | } |
| 354 | 354 | ||
| 355 | char | 355 | char |
| @@ -357,7 +357,7 @@ char | |||
| 357 | { | 357 | { |
| 358 | char *p = NULL; | 358 | char *p = NULL; |
| 359 | 359 | ||
| 360 | if (BIO_ctrl(b, cmd, larg,(char *)&p) <= 0) | 360 | if (BIO_ctrl(b, cmd, larg, (char *)&p) <= 0) |
| 361 | return (NULL); | 361 | return (NULL); |
| 362 | else | 362 | else |
| 363 | return (p); | 363 | return (p); |
| @@ -408,13 +408,13 @@ BIO_callback_ctrl(BIO *b, int cmd, | |||
| 408 | cb = b->callback; | 408 | cb = b->callback; |
| 409 | 409 | ||
| 410 | if ((cb != NULL) && | 410 | if ((cb != NULL) && |
| 411 | ((ret = cb(b, BIO_CB_CTRL,(void *)&fp, cmd, 0, 1L)) <= 0)) | 411 | ((ret = cb(b, BIO_CB_CTRL, (void *)&fp, cmd, 0, 1L)) <= 0)) |
| 412 | return (ret); | 412 | return (ret); |
| 413 | 413 | ||
| 414 | ret = b->method->callback_ctrl(b, cmd, fp); | 414 | ret = b->method->callback_ctrl(b, cmd, fp); |
| 415 | 415 | ||
| 416 | if (cb != NULL) | 416 | if (cb != NULL) |
| 417 | ret = cb(b, BIO_CB_CTRL|BIO_CB_RETURN,(void *)&fp, cmd, 0, ret); | 417 | ret = cb(b, BIO_CB_CTRL|BIO_CB_RETURN, (void *)&fp, cmd, 0, ret); |
| 418 | return (ret); | 418 | return (ret); |
| 419 | } | 419 | } |
| 420 | 420 | ||
| @@ -444,7 +444,7 @@ BIO | |||
| 444 | return (bio); | 444 | return (bio); |
| 445 | lb = b; | 445 | lb = b; |
| 446 | while (lb->next_bio != NULL) | 446 | while (lb->next_bio != NULL) |
| 447 | lb = lb->next_bio; | 447 | lb = lb->next_bio; |
| 448 | lb->next_bio = bio; | 448 | lb->next_bio = bio; |
| 449 | if (bio != NULL) | 449 | if (bio != NULL) |
| 450 | bio->prev_bio = lb; | 450 | bio->prev_bio = lb; |
| @@ -482,8 +482,9 @@ BIO | |||
| 482 | 482 | ||
| 483 | b = last = bio; | 483 | b = last = bio; |
| 484 | for (;;) { | 484 | for (;;) { |
| 485 | if (!BIO_should_retry(b)) break; | 485 | if (!BIO_should_retry(b)) |
| 486 | last = b; | 486 | break; |
| 487 | last = b; | ||
| 487 | b = b->next_bio; | 488 | b = b->next_bio; |
| 488 | if (b == NULL) | 489 | if (b == NULL) |
| 489 | break; | 490 | break; |
| @@ -552,8 +553,9 @@ BIO | |||
| 552 | BIO *ret = NULL, *eoc = NULL, *bio, *new_bio; | 553 | BIO *ret = NULL, *eoc = NULL, *bio, *new_bio; |
| 553 | 554 | ||
| 554 | for (bio = in; bio != NULL; bio = bio->next_bio) { | 555 | for (bio = in; bio != NULL; bio = bio->next_bio) { |
| 555 | if ((new_bio = BIO_new(bio->method)) == NULL) goto err; | 556 | if ((new_bio = BIO_new(bio->method)) == NULL) |
| 556 | new_bio->callback = bio->callback; | 557 | goto err; |
| 558 | new_bio->callback = bio->callback; | ||
| 557 | new_bio->cb_arg = bio->cb_arg; | 559 | new_bio->cb_arg = bio->cb_arg; |
| 558 | new_bio->init = bio->init; | 560 | new_bio->init = bio->init; |
| 559 | new_bio->shutdown = bio->shutdown; | 561 | new_bio->shutdown = bio->shutdown; |
| @@ -562,7 +564,7 @@ BIO | |||
| 562 | /* This will let SSL_s_sock() work with stdin/stdout */ | 564 | /* This will let SSL_s_sock() work with stdin/stdout */ |
| 563 | new_bio->num = bio->num; | 565 | new_bio->num = bio->num; |
| 564 | 566 | ||
| 565 | if (!BIO_dup_state(bio,(char *)new_bio)) { | 567 | if (!BIO_dup_state(bio, (char *)new_bio)) { |
| 566 | BIO_free(new_bio); | 568 | BIO_free(new_bio); |
| 567 | goto err; | 569 | goto err; |
| 568 | } | 570 | } |
