~andersk/ubuntu/oneiric/openssl/spurious-reboot

« back to all changes in this revision

Viewing changes to ssl/ssl_stat.c

  • Committer: Bazaar Package Importer
  • Author(s): Colin Watson
  • Date: 2011-05-01 23:51:53 UTC
  • mfrom: (11.1.20 sid)
  • Revision ID: james.westby@ubuntu.com-20110501235153-bjcxitndquaezb68
Tags: 1.0.0d-2ubuntu1
* Resynchronise with Debian (LP: #675566).  Remaining changes:
  - debian/libssl1.0.0.postinst:
    + Display a system restart required notification bubble on libssl1.0.0
      upgrade.
    + Use a different priority for libssl1.0.0/restart-services depending
      on whether a desktop, or server dist-upgrade is being performed.
  - debian/{libssl1.0.0-udeb.dirs, control, rules}: Create
    libssl1.0.0-udeb, for the benefit of wget-udeb (no wget-udeb package
    in Debian).
  - debian/{libcrypto1.0.0-udeb.dirs, libssl1.0.0.dirs, libssl1.0.0.files,
    rules}: Move runtime libraries to /lib, for the benefit of
    wpasupplicant.
  - debian/patches/aesni.patch: Backport Intel AES-NI support, now from
    http://rt.openssl.org/Ticket/Display.html?id=2065 rather than the
    0.9.8 variant.
  - debian/patches/Bsymbolic-functions.patch: Link using
    -Bsymbolic-functions.
  - debian/patches/perlpath-quilt.patch: Don't change perl #! paths under
    .pc.
  - debian/rules:
    + Don't run 'make test' when cross-building.
    + Use host compiler when cross-building.  Patch from Neil Williams.
    + Don't build for processors no longer supported: i486, i586 (on
      i386), v8 (on sparc).
    + Fix Makefile to properly clean up libs/ dirs in clean target.
    + Replace duplicate files in the doc directory with symlinks.
* Update architectures affected by Bsymbolic-functions.patch.
* Drop debian/patches/no-sslv2.patch; Debian now adds the 'no-ssl2'
  configure option, which compiles out SSLv2 support entirely, so this is
  no longer needed.
* Drop openssl-doc in favour of the libssl-doc package introduced by
  Debian.  Add Conflicts/Replaces until the next LTS release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
 * copied and put under another distribution licence
56
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
85
#include <stdio.h>
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;
418
450
                }
419
451
        return(str);
497
529
        case TLS1_AD_NO_RENEGOTIATION:
498
530
                str="no renegotiation";
499
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;
500
550
        default: str="unknown"; break;
501
551
                }
502
552
        return(str);