Skip to content

Commit 40390f3

Browse files
authored
Merge pull request #116 from twilfredo/wilfred/fixup-psk-compile
tlshd: fixup compile errors with HAVE_GNUTLS_PSK_ALLOCATE_CREDENTIALS2
2 parents 3183871 + dd10615 commit 40390f3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/tlshd/client.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,8 @@ static void tlshd_tls13_client_psk_handshake_one(struct tlshd_handshake_parms *p
361361
gnutls_psk_client_credentials_t psk_cred;
362362
gnutls_session_t session;
363363
#ifdef HAVE_GNUTLS_PSK_ALLOCATE_CREDENTIALS2
364-
int version, type, hash;
364+
int version, hash;
365+
char type;
365366
#endif
366367
gnutls_datum_t key;
367368
unsigned int flags;

src/tlshd/server.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ static void tlshd_tls13_server_psk_handshake(struct tlshd_handshake_parms *parms
370370

371371
#ifdef HAVE_GNUTLS_PSK_ALLOCATE_CREDENTIALS2
372372
ret = gnutls_psk_allocate_server_credentials2(&psk_cred,
373-
GNUTLS_MAC_NONE);
373+
GNUTLS_MAC_UNKNOWN);
374374
#else
375375
ret = gnutls_psk_allocate_server_credentials(&psk_cred);
376376
#endif

0 commit comments

Comments
 (0)