summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authorjsing <>2021-07-03 16:06:45 +0000
committerjsing <>2021-07-03 16:06:45 +0000
commit70e6e6179f5b7c30c5e842ff74f348f67cedf838 (patch)
tree58fdc59b50658cb38625bc6b82f9d37d8af2cb2a /src/lib/libssl/ssl_locl.h
parente79eb28078c0d90b4c659f0698359ae69f15f007 (diff)
downloadopenbsd-70e6e6179f5b7c30c5e842ff74f348f67cedf838.tar.gz
openbsd-70e6e6179f5b7c30c5e842ff74f348f67cedf838.tar.bz2
openbsd-70e6e6179f5b7c30c5e842ff74f348f67cedf838.zip
Do a first pass clean up of SSL_METHOD.
The num_ciphers, get_cipher_by_char and put_cipher_by_char function pointers use the same function for all methods - call ssl3_num_ciphers() directly, absorb ssl3_get_cipher_by_char() into SSL_CIPHER_find() and remove the unused ssl3_put_cipher_by_char() code. ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index 6ffc2e053c..677feca157 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.354 2021/07/01 17:53:39 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.355 2021/07/03 16:06:45 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 *
@@ -403,10 +403,7 @@ struct ssl_method_st {
403 int (*ssl_write_bytes)(SSL *s, int type, const void *buf_, int len); 403 int (*ssl_write_bytes)(SSL *s, int type, const void *buf_, int len);
404 404
405 int (*ssl_dispatch_alert)(SSL *s); 405 int (*ssl_dispatch_alert)(SSL *s);
406 int (*num_ciphers)(void);
407 const SSL_CIPHER *(*get_cipher)(unsigned int ncipher); 406 const SSL_CIPHER *(*get_cipher)(unsigned int ncipher);
408 const SSL_CIPHER *(*get_cipher_by_char)(const unsigned char *ptr);
409 int (*put_cipher_by_char)(const SSL_CIPHER *cipher, unsigned char *ptr);
410 407
411 unsigned int enc_flags; /* SSL_ENC_FLAG_* */ 408 unsigned int enc_flags; /* SSL_ENC_FLAG_* */
412}; 409};
@@ -1229,7 +1226,6 @@ int ssl_verify_alarm_type(long type);
1229int SSL_SESSION_ticket(SSL_SESSION *ss, unsigned char **out, size_t *out_len); 1226int SSL_SESSION_ticket(SSL_SESSION *ss, unsigned char **out, size_t *out_len);
1230 1227
1231const SSL_CIPHER *ssl3_get_cipher_by_char(const unsigned char *p); 1228const SSL_CIPHER *ssl3_get_cipher_by_char(const unsigned char *p);
1232int ssl3_put_cipher_by_char(const SSL_CIPHER *c, unsigned char *p);
1233int ssl3_send_server_certificate(SSL *s); 1229int ssl3_send_server_certificate(SSL *s);
1234int ssl3_send_newsession_ticket(SSL *s); 1230int ssl3_send_newsession_ticket(SSL *s);
1235int ssl3_send_cert_status(SSL *s); 1231int ssl3_send_cert_status(SSL *s);