Skip to content

Commit

Permalink
Update draft version -> 20
Browse files Browse the repository at this point in the history
  • Loading branch information
ctz committed May 1, 2017
1 parent e9905a1 commit 06d03ee
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ obsolete cryptography.

## Current features

* TLS1.2 and TLS1.3 (draft 18) only.
* TLS1.2 and TLS1.3 (draft 20) only.
* ECDSA or RSA server authentication by clients.
* RSA server authentication by servers.
* Forward secrecy using ECDHE; with curve25519, nistp256 or nistp384 curves.
Expand Down
4 changes: 2 additions & 2 deletions src/client_hs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ use handshake::Expectation;

use std::mem;

// draft-ietf-tls-tls13-19
const TLS13_DRAFT: u16 = 0x7f13;
// draft-ietf-tls-tls13-20
const TLS13_DRAFT: u16 = 0x7f14;

macro_rules! extract_handshake(
( $m:expr, $t:path ) => (
Expand Down
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
//!
//! ## Current features
//!
//! * TLS1.2 and TLS1.3 (draft 19) only.
//! * TLS1.2 and TLS1.3 (draft 20) only.
//! * ECDSA or RSA server authentication by clients.
//! * RSA server authentication by servers.
//! * Forward secrecy using ECDHE; with curve25519, nistp256 or nistp384 curves.
Expand Down
2 changes: 1 addition & 1 deletion src/msgs/handshake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ pub struct ServerHelloPayload {
}

fn is_tls13(vers: ProtocolVersion) -> bool {
vers == ProtocolVersion::TLSv1_3 || vers == ProtocolVersion::Unknown(0x7f13)
vers == ProtocolVersion::TLSv1_3 || vers == ProtocolVersion::Unknown(0x7f14)
}

impl Codec for ServerHelloPayload {
Expand Down
2 changes: 1 addition & 1 deletion src/server_hs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ use handshake::Expectation;

use std::sync::Arc;

const TLS13_DRAFT: u16 = 0x7f13;
const TLS13_DRAFT: u16 = 0x7f14;

macro_rules! extract_handshake(
( $m:expr, $t:path ) => (
Expand Down

0 comments on commit 06d03ee

Please sign in to comment.