summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <>2021-05-02 17:46:58 +0000
committerjsing <>2021-05-02 17:46:58 +0000
commit138d879b1616ace5c1ae9d93e2d734b08892691d (patch)
tree50c9893a25ead9ba252f8ac28a27688e77d6f79d /src/lib/libssl/ssl_locl.h
parent9f7bc5899b5335b444e8b9f837aee040b51730e7 (diff)
downloadopenbsd-138d879b1616ace5c1ae9d93e2d734b08892691d.tar.gz
openbsd-138d879b1616ace5c1ae9d93e2d734b08892691d.tar.bz2
openbsd-138d879b1616ace5c1ae9d93e2d734b08892691d.zip
Clean up tls1_change_cipher_state().
Replace flag gymnastics at call sites with separate read and write, functions which call the common code. Condition on s->server instead of using SSL_ST_ACCEPT, for consistency and more readable code. ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 38b6838464..9dfa1243c9 100644
--- a/src/lib/libssl/ssl_locl.h
+++ b/src/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_locl.h,v 1.340 2021/05/02 17:18:10 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.341 2021/05/02 17:46:58 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1378,7 +1378,8 @@ int tls1_PRF(SSL *s, const unsigned char *secret, size_t secret_len,
1378 const void *seed5, size_t seed5_len, unsigned char *out, size_t out_len); 1378 const void *seed5, size_t seed5_len, unsigned char *out, size_t out_len);
1379 1379
1380void tls1_cleanup_key_block(SSL *s); 1380void tls1_cleanup_key_block(SSL *s);
1381int tls1_change_cipher_state(SSL *s, int which); 1381int tls1_change_read_cipher_state(SSL *s);
1382int tls1_change_write_cipher_state(SSL *s);
1382int tls1_setup_key_block(SSL *s); 1383int tls1_setup_key_block(SSL *s);
1383int tls1_export_keying_material(SSL *s, unsigned char *out, size_t olen, 1384int tls1_export_keying_material(SSL *s, unsigned char *out, size_t olen,
1384 const char *label, size_t llen, const unsigned char *p, size_t plen, 1385 const char *label, size_t llen, const unsigned char *p, size_t plen,