Sfoglia il codice sorgente

Also clean the last byte of the PSK identity.

Patch by Alex Kljubin.

Change-Id: Ieec830dce11b501aaa82f03c82ff04c3cdde41e1
Reviewed-on: https://boringssl-review.googlesource.com/1831
Reviewed-by: Adam Langley <agl@google.com>
kris/onging/CECPQ3_patch15
Adam Langley 10 anni fa
parent
commit
5d0c163b37
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      ssl/s3_clnt.c

+ 1
- 1
ssl/s3_clnt.c Vedi File

@@ -1959,7 +1959,7 @@ int ssl3_send_client_key_exchange(SSL *s)
}
psk_err = 0;
psk_err:
OPENSSL_cleanse(identity, PSK_MAX_IDENTITY_LEN);
OPENSSL_cleanse(identity, sizeof(identity));
OPENSSL_cleanse(pre_ms, sizeof(pre_ms));
if (psk_err != 0)
{


Caricamento…
Annulla
Salva