Minor formatting fixes.
Noticed these as I was poking around. Change-Id: I93833a152583feced374c9febf7485bec7abc1c7 Reviewed-on: https://boringssl-review.googlesource.com/3973 Reviewed-by: Adam Langley <agl@google.com>
This commit is contained in:
parent
9e13e1a31d
commit
8b368412d3
@ -173,8 +173,7 @@ int ssl3_send_finished(SSL *s, int a, int b, const char *sender, int slen) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Copy the finished so we can use it for
|
||||
* renegotiation checks */
|
||||
/* Copy the finished so we can use it for renegotiation checks */
|
||||
if (s->server) {
|
||||
assert(n <= EVP_MAX_MD_SIZE);
|
||||
memcpy(s->s3->previous_server_finished, s->s3->tmp.finish_md, n);
|
||||
|
@ -390,12 +390,8 @@ int ssl3_connect(SSL *s) {
|
||||
s->init_num = 0;
|
||||
|
||||
s->session->cipher = s->s3->tmp.new_cipher;
|
||||
if (!s->enc_method->setup_key_block(s)) {
|
||||
ret = -1;
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (!s->enc_method->change_cipher_state(
|
||||
if (!s->enc_method->setup_key_block(s) ||
|
||||
!s->enc_method->change_cipher_state(
|
||||
s, SSL3_CHANGE_CIPHER_CLIENT_WRITE)) {
|
||||
ret = -1;
|
||||
goto end;
|
||||
|
@ -204,7 +204,7 @@ static int NextProtosAdvertisedCallback(SSL *ssl, const uint8_t **out,
|
||||
}
|
||||
|
||||
static int NextProtoSelectCallback(SSL* ssl, uint8_t** out, uint8_t* outlen,
|
||||
const uint8_t* in, unsigned inlen, void* arg) {
|
||||
const uint8_t* in, unsigned inlen, void* arg) {
|
||||
const TestConfig *config = GetConfigPtr(ssl);
|
||||
if (config->select_next_proto.empty()) {
|
||||
return SSL_TLSEXT_ERR_NOACK;
|
||||
|
Loading…
Reference in New Issue
Block a user