55
55
* copied and put under another distribution licence
56
56
* [including the GNU Public Licence.]
58
/* ====================================================================
59
* Copyright 2005 Nokia. All rights reserved.
61
* The portions of the attached software ("Contribution") is developed by
62
* Nokia Corporation and is licensed pursuant to the OpenSSL open source
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.
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.
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.
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
60
86
#include "ssl_locl.h"
414
440
case TLS1_AD_INTERNAL_ERROR: str="IE"; break;
415
441
case TLS1_AD_USER_CANCELLED: str="US"; break;
416
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;
417
449
default: str="UK"; break;
497
529
case TLS1_AD_NO_RENEGOTIATION:
498
530
str="no renegotiation";
532
case TLS1_AD_UNSUPPORTED_EXTENSION:
533
str="unsupported extension";
535
case TLS1_AD_CERTIFICATE_UNOBTAINABLE:
536
str="certificate unobtainable";
538
case TLS1_AD_UNRECOGNIZED_NAME:
539
str="unrecognized name";
541
case TLS1_AD_BAD_CERTIFICATE_STATUS_RESPONSE:
542
str="bad certificate status response";
544
case TLS1_AD_BAD_CERTIFICATE_HASH_VALUE:
545
str="bad certificate hash value";
547
case TLS1_AD_UNKNOWN_PSK_IDENTITY:
548
str="unknown PSK identity";
500
550
default: str="unknown"; break;