diff options
| author | djm <> | 2010-10-01 22:59:01 +0000 |
|---|---|---|
| committer | djm <> | 2010-10-01 22:59:01 +0000 |
| commit | 8922d4bc4a8b8893d72a48deb2cdf58215f98505 (patch) | |
| tree | 939b752540947d33507b3acc48d76a8bfb7c3dc3 /src/lib/libssl/ssl_stat.c | |
| parent | 76262f7bf9262f965142b1b2b2105cb279c5c696 (diff) | |
| download | openbsd-8922d4bc4a8b8893d72a48deb2cdf58215f98505.tar.gz openbsd-8922d4bc4a8b8893d72a48deb2cdf58215f98505.tar.bz2 openbsd-8922d4bc4a8b8893d72a48deb2cdf58215f98505.zip | |
resolve conflicts, fix local changes
Diffstat (limited to 'src/lib/libssl/ssl_stat.c')
| -rw-r--r-- | src/lib/libssl/ssl_stat.c | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/src/lib/libssl/ssl_stat.c b/src/lib/libssl/ssl_stat.c index 73b02509d4..144b81e55f 100644 --- a/src/lib/libssl/ssl_stat.c +++ b/src/lib/libssl/ssl_stat.c | |||
| @@ -55,6 +55,32 @@ | |||
| 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 | /* ==================================================================== | ||
| 59 | * Copyright 2005 Nokia. All rights reserved. | ||
| 60 | * | ||
| 61 | * The portions of the attached software ("Contribution") is developed by | ||
| 62 | * Nokia Corporation and is licensed pursuant to the OpenSSL open source | ||
| 63 | * license. | ||
| 64 | * | ||
| 65 | * The Contribution, originally written by Mika Kousa and Pasi Eronen of | ||
| 66 | * Nokia Corporation, consists of the "PSK" (Pre-Shared Key) ciphersuites | ||
| 67 | * support (see RFC 4279) to OpenSSL. | ||
| 68 | * | ||
| 69 | * No patent licenses or other rights except those expressly stated in | ||
| 70 | * the OpenSSL open source license shall be deemed granted or received | ||
| 71 | * expressly, by implication, estoppel, or otherwise. | ||
| 72 | * | ||
| 73 | * No assurances are provided by Nokia that the Contribution does not | ||
| 74 | * infringe the patent or other intellectual property rights of any third | ||
| 75 | * party or that the license provides you with all the necessary rights | ||
| 76 | * to make use of the Contribution. | ||
| 77 | * | ||
| 78 | * THE SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. IN | ||
| 79 | * ADDITION TO THE DISCLAIMERS INCLUDED IN THE LICENSE, NOKIA | ||
| 80 | * SPECIFICALLY DISCLAIMS ANY LIABILITY FOR CLAIMS BROUGHT BY YOU OR ANY | ||
| 81 | * OTHER ENTITY BASED ON INFRINGEMENT OF INTELLECTUAL PROPERTY RIGHTS OR | ||
| 82 | * OTHERWISE. | ||
| 83 | */ | ||
| 58 | 84 | ||
| 59 | #include <stdio.h> | 85 | #include <stdio.h> |
| 60 | #include "ssl_locl.h" | 86 | #include "ssl_locl.h" |
| @@ -198,6 +224,12 @@ case SSL23_ST_SR_CLNT_HELLO_A: str="SSLv2/v3 read client hello A"; break; | |||
| 198 | case SSL23_ST_SR_CLNT_HELLO_B: str="SSLv2/v3 read client hello B"; break; | 224 | case SSL23_ST_SR_CLNT_HELLO_B: str="SSLv2/v3 read client hello B"; break; |
| 199 | #endif | 225 | #endif |
| 200 | 226 | ||
| 227 | /* DTLS */ | ||
| 228 | case DTLS1_ST_CR_HELLO_VERIFY_REQUEST_A: str="DTLS1 read hello verify request A"; break; | ||
| 229 | case DTLS1_ST_CR_HELLO_VERIFY_REQUEST_B: str="DTLS1 read hello verify request B"; break; | ||
| 230 | case DTLS1_ST_SW_HELLO_VERIFY_REQUEST_A: str="DTLS1 write hello verify request A"; break; | ||
| 231 | case DTLS1_ST_SW_HELLO_VERIFY_REQUEST_B: str="DTLS1 write hello verify request B"; break; | ||
| 232 | |||
| 201 | default: str="unknown state"; break; | 233 | default: str="unknown state"; break; |
| 202 | } | 234 | } |
| 203 | return(str); | 235 | return(str); |
| @@ -345,6 +377,11 @@ case SSL23_ST_CR_SRVR_HELLO_B: str="23RSHA"; break; | |||
| 345 | case SSL23_ST_SR_CLNT_HELLO_A: str="23RCHA"; break; | 377 | case SSL23_ST_SR_CLNT_HELLO_A: str="23RCHA"; break; |
| 346 | case SSL23_ST_SR_CLNT_HELLO_B: str="23RCHB"; break; | 378 | case SSL23_ST_SR_CLNT_HELLO_B: str="23RCHB"; break; |
| 347 | #endif | 379 | #endif |
| 380 | /* DTLS */ | ||
| 381 | case DTLS1_ST_CR_HELLO_VERIFY_REQUEST_A: str="DRCHVA"; break; | ||
| 382 | case DTLS1_ST_CR_HELLO_VERIFY_REQUEST_B: str="DRCHVB"; break; | ||
| 383 | case DTLS1_ST_SW_HELLO_VERIFY_REQUEST_A: str="DWCHVA"; break; | ||
| 384 | case DTLS1_ST_SW_HELLO_VERIFY_REQUEST_B: str="DWCHVB"; break; | ||
| 348 | 385 | ||
| 349 | default: str="UNKWN "; break; | 386 | default: str="UNKWN "; break; |
| 350 | } | 387 | } |
| @@ -403,6 +440,12 @@ const char *SSL_alert_desc_string(int value) | |||
| 403 | case TLS1_AD_INTERNAL_ERROR: str="IE"; break; | 440 | case TLS1_AD_INTERNAL_ERROR: str="IE"; break; |
| 404 | case TLS1_AD_USER_CANCELLED: str="US"; break; | 441 | case TLS1_AD_USER_CANCELLED: str="US"; break; |
| 405 | case TLS1_AD_NO_RENEGOTIATION: str="NR"; break; | 442 | case TLS1_AD_NO_RENEGOTIATION: str="NR"; break; |
| 443 | case TLS1_AD_UNSUPPORTED_EXTENSION: str="UE"; break; | ||
| 444 | case TLS1_AD_CERTIFICATE_UNOBTAINABLE: str="CO"; break; | ||
| 445 | case TLS1_AD_UNRECOGNIZED_NAME: str="UN"; break; | ||
| 446 | case TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE: str="BR"; break; | ||
| 447 | case TLS1_AD_BAD_CERTIFICATE_HASH_VALUE: str="BH"; break; | ||
| 448 | case TLS1_AD_UNKNOWN_PSK_IDENTITY: str="UP"; break; | ||
| 406 | default: str="UK"; break; | 449 | default: str="UK"; break; |
| 407 | } | 450 | } |
| 408 | return(str); | 451 | return(str); |
| @@ -486,6 +529,24 @@ const char *SSL_alert_desc_string_long(int value) | |||
| 486 | case TLS1_AD_NO_RENEGOTIATION: | 529 | case TLS1_AD_NO_RENEGOTIATION: |
| 487 | str="no renegotiation"; | 530 | str="no renegotiation"; |
| 488 | break; | 531 | break; |
| 532 | case TLS1_AD_UNSUPPORTED_EXTENSION: | ||
| 533 | str="unsupported extension"; | ||
| 534 | break; | ||
| 535 | case TLS1_AD_CERTIFICATE_UNOBTAINABLE: | ||
| 536 | str="certificate unobtainable"; | ||
| 537 | break; | ||
| 538 | case TLS1_AD_UNRECOGNIZED_NAME: | ||
| 539 | str="unrecognized name"; | ||
| 540 | break; | ||
| 541 | case TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE: | ||
| 542 | str="bad certificate status response"; | ||
| 543 | break; | ||
| 544 | case TLS1_AD_BAD_CERTIFICATE_HASH_VALUE: | ||
| 545 | str="bad certificate hash value"; | ||
| 546 | break; | ||
| 547 | case TLS1_AD_UNKNOWN_PSK_IDENTITY: | ||
| 548 | str="unknown PSK identity"; | ||
| 549 | break; | ||
| 489 | default: str="unknown"; break; | 550 | default: str="unknown"; break; |
| 490 | } | 551 | } |
| 491 | return(str); | 552 | return(str); |
