Skip to content

Commit

Permalink
Merge pull request #192 from cconlon/tls13secretcb
Browse files Browse the repository at this point in the history
Correct example TLS 1.3 secret callback
  • Loading branch information
JacobBarthelmeh authored May 6, 2024
2 parents a2db7c3 + 9b8a0c4 commit b08237d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/MyTls13SecretCallback.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,9 @@ public int tls13SecretCallback(WolfSSLSession ssl, int id, byte[] secret,
} else if (id == WolfSSL.SERVER_HANDSHAKE_TRAFFIC_SECRET) {
str = "SERVER_HANDSHAKE_TRAFFIC_SECRET";
} else if (id == WolfSSL.CLIENT_TRAFFIC_SECRET) {
str = "CLIENT_TRAFFIC_SECRET";
str = "CLIENT_TRAFFIC_SECRET_0";
} else if (id == WolfSSL.SERVER_TRAFFIC_SECRET) {
str = "SERVER_TRAFFIC_SECRET";
str = "SERVER_TRAFFIC_SECRET_0";
} else if (id == WolfSSL.EXPORTER_SECRET) {
str = "EXPORTER_SECRET";
} else {
Expand Down

0 comments on commit b08237d

Please sign in to comment.