View | Details | Raw Unified | Return to bug 959888
Collapse All | Expand All

(-)a/lib/ssl/ssl3con.c (-1 lines)
Lines 4369-4385 ssl3_ConsumeHandshakeVariable(sslSocket Link Here
4369
}
4369
}
4370
4370
4371
/* tlsHashOIDMap contains the mapping between TLS hash identifiers and the
4371
/* tlsHashOIDMap contains the mapping between TLS hash identifiers and the
4372
 * SECOidTag used internally by NSS. */
4372
 * SECOidTag used internally by NSS. */
4373
static const struct {
4373
static const struct {
4374
    int tlsHash;
4374
    int tlsHash;
4375
    SECOidTag oid;
4375
    SECOidTag oid;
4376
} tlsHashOIDMap[] = {
4376
} tlsHashOIDMap[] = {
4377
    { tls_hash_md5, SEC_OID_MD5 },
4378
    { tls_hash_sha1, SEC_OID_SHA1 },
4377
    { tls_hash_sha1, SEC_OID_SHA1 },
4379
    { tls_hash_sha224, SEC_OID_SHA224 },
4378
    { tls_hash_sha224, SEC_OID_SHA224 },
4380
    { tls_hash_sha256, SEC_OID_SHA256 },
4379
    { tls_hash_sha256, SEC_OID_SHA256 },
4381
    { tls_hash_sha384, SEC_OID_SHA384 },
4380
    { tls_hash_sha384, SEC_OID_SHA384 },
4382
    { tls_hash_sha512, SEC_OID_SHA512 }
4381
    { tls_hash_sha512, SEC_OID_SHA512 }
4383
};
4382
};
4384
4383
4385
/* ssl3_TLSHashAlgorithmToOID converts a TLS hash identifier into an OID value.
4384
/* ssl3_TLSHashAlgorithmToOID converts a TLS hash identifier into an OID value.

Return to bug 959888