1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-07-28 00:21:48 +03:00

Add server-side support for ECDSA client auth

This commit is contained in:
Manuel Pégourié-Gonnard
2013-08-17 13:01:41 +02:00
parent fb08fd2e23
commit 0b03200e96
2 changed files with 132 additions and 43 deletions

View File

@ -192,6 +192,7 @@
/*
* Supported Signature and Hash algorithms (For TLS 1.2)
* RFC 5246 section 7.4.1.4.1
*/
#define SSL_HASH_NONE 0
#define SSL_HASH_MD5 1
@ -202,11 +203,14 @@
#define SSL_HASH_SHA512 6
#define SSL_SIG_RSA 1
#define SSL_SIG_ECDSA 3
/*
* Client Certificate Types
* RFC 5246 section 7.4.4 plus RFC 4492 section 5.5
*/
#define SSL_CERT_TYPE_RSA_SIGN 1
#define SSL_CERT_TYPE_ECDSA_SIGN 64
/*
* Message, alert and handshake types