Skip to content

Commit

Permalink
fields for PSK key, new constants
Browse files Browse the repository at this point in the history
Reviewed-by: Matt Caswell <matt@openssl.org>
  • Loading branch information
snhenson committed Jul 30, 2015
1 parent 5e8b24d commit 64651d3
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions ssl/ssl_locl.h
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,14 @@
/* SRP */
# define SSL_kSRP 0x00000400L

# define SSL_kRSAPSK 0x00000800L
# define SSL_kECDHEPSK 0x00001000L
# define SSL_kDHEPSK 0x00002000L

/* all PSK */

#define SSL_PSK (SSL_kPSK | SSL_kRSAPSK | SSL_kECDHEPSK | SSL_kDHEPSK)

/* Bits for algorithm_auth (server authentication) */
/* RSA auth */
# define SSL_aRSA 0x00000001L
Expand Down Expand Up @@ -1269,6 +1277,9 @@ typedef struct ssl3_state_st {
/* Temporary storage for premaster secret */
unsigned char *pms;
size_t pmslen;
/* Temporary storage for PSK key */
unsigned char *psk;
size_t psklen;
/*
* signature algorithms peer reports: e.g. supported signature
* algorithms extension for server or as part of a certificate
Expand Down

0 comments on commit 64651d3

Please sign in to comment.