Skip to content

Commit

Permalink
dtls: fix typo in CERTIFICATE
Browse files Browse the repository at this point in the history
Signed-off-by: Hauke Mehrtens <[email protected]>
  • Loading branch information
hauke committed Feb 10, 2014
1 parent 60b4b08 commit d1bc41e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions dtls.c
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ dtls_check_tls_extension(dtls_peer_t *peer,
if (verify_ext_eliptic_curves(data, j))
goto error;
break;
case TLS_EXT_CLIENT_CERIFICATE_TYPE:
case TLS_EXT_CLIENT_CERTIFICATE_TYPE:
ext_client_cert_type = 1;
if (client_hello) {
if (verify_ext_cert_type(data, j))
Expand All @@ -804,7 +804,7 @@ dtls_check_tls_extension(dtls_peer_t *peer,
goto error;
}
break;
case TLS_EXT_SERVER_CERIFICATE_TYPE:
case TLS_EXT_SERVER_CERTIFICATE_TYPE:
ext_server_cert_type = 1;
if (client_hello) {
if (verify_ext_cert_type(data, j))
Expand Down Expand Up @@ -1722,7 +1722,7 @@ dtls_send_server_hello(dtls_context_t *ctx, dtls_peer_t *peer)

if (ecdsa) {
/* client certificate type extension */
dtls_int_to_uint16(p, TLS_EXT_CLIENT_CERIFICATE_TYPE);
dtls_int_to_uint16(p, TLS_EXT_CLIENT_CERTIFICATE_TYPE);
p += sizeof(uint16);

/* length of this extension type */
Expand All @@ -1733,7 +1733,7 @@ dtls_send_server_hello(dtls_context_t *ctx, dtls_peer_t *peer)
p += sizeof(uint8);

/* client certificate type extension */
dtls_int_to_uint16(p, TLS_EXT_SERVER_CERIFICATE_TYPE);
dtls_int_to_uint16(p, TLS_EXT_SERVER_CERTIFICATE_TYPE);
p += sizeof(uint16);

/* length of this extension type */
Expand Down Expand Up @@ -2312,7 +2312,7 @@ dtls_send_client_hello(dtls_context_t *ctx, dtls_peer_t *peer,

if (ecdsa) {
/* client certificate type extension */
dtls_int_to_uint16(p, TLS_EXT_CLIENT_CERIFICATE_TYPE);
dtls_int_to_uint16(p, TLS_EXT_CLIENT_CERTIFICATE_TYPE);
p += sizeof(uint16);

/* length of this extension type */
Expand All @@ -2327,7 +2327,7 @@ dtls_send_client_hello(dtls_context_t *ctx, dtls_peer_t *peer,
p += sizeof(uint8);

/* client certificate type extension */
dtls_int_to_uint16(p, TLS_EXT_SERVER_CERIFICATE_TYPE);
dtls_int_to_uint16(p, TLS_EXT_SERVER_CERTIFICATE_TYPE);
p += sizeof(uint16);

/* length of this extension type */
Expand Down
4 changes: 2 additions & 2 deletions global.h
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ typedef enum {
#define TLS_EXT_ELLIPTIC_CURVES 10 /* see RFC 4492 */
#define TLS_EXT_EC_POINT_FORMATS 11 /* see RFC 4492 */
#define TLS_EXT_SIG_HASH_ALGO 13 /* see RFC 5246 */
#define TLS_EXT_CLIENT_CERIFICATE_TYPE 122 /* TODO: replcae with values from draft-ietf-tls-oob-pubkey */
#define TLS_EXT_SERVER_CERIFICATE_TYPE 123 /* TODO: replcae with values from draft-ietf-tls-oob-pubkey */
#define TLS_EXT_CLIENT_CERTIFICATE_TYPE 122 /* TODO: replcae with values from draft-ietf-tls-oob-pubkey */
#define TLS_EXT_SERVER_CERTIFICATE_TYPE 123 /* TODO: replcae with values from draft-ietf-tls-oob-pubkey */

#define TLS_CERT_TYPE_OOB 2 /* replcae with values from draft-ietf-tls-oob-pubkey */

Expand Down

0 comments on commit d1bc41e

Please sign in to comment.