diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-09-22 07:56:49 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2016-09-22 07:56:49 +0000 |
commit | f986313a171dbc7e92effbdd1b43b9e430e68cff (patch) | |
tree | 9074eece5181784a07c640fe73c185cc90e98801 /usr.sbin/relayd/relay.c | |
parent | d466d6a204d553f76ec5255c644aafb1b0026585 (diff) |
Change function arguments from "unsigned char keyname[16]" to
"unsigned char *keyname" to make it clear that an array size can not
be inferred. Suggested by millert@
Diffstat (limited to 'usr.sbin/relayd/relay.c')
-rw-r--r-- | usr.sbin/relayd/relay.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/relayd/relay.c b/usr.sbin/relayd/relay.c index 9a3e601548d..a8bc97bf7a9 100644 --- a/usr.sbin/relayd/relay.c +++ b/usr.sbin/relayd/relay.c @@ -1,4 +1,4 @@ -/* $OpenBSD: relay.c,v 1.212 2016/09/22 06:18:58 jsg Exp $ */ +/* $OpenBSD: relay.c,v 1.213 2016/09/22 07:56:48 jsg Exp $ */ /* * Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org> @@ -86,8 +86,8 @@ void relay_tls_connected(struct ctl_relay_event *); void relay_tls_readcb(int, short, void *); void relay_tls_writecb(int, short, void *); -struct tls_ticket *relay_get_ticket_key(unsigned char [16]); -int relay_tls_session_ticket(SSL *, unsigned char [16], +struct tls_ticket *relay_get_ticket_key(unsigned char *); +int relay_tls_session_ticket(SSL *, unsigned char *, unsigned char *, EVP_CIPHER_CTX *, HMAC_CTX *, int); char *relay_load_file(const char *, off_t *); @@ -2555,7 +2555,7 @@ relay_tls_writecb(int fd, short event, void *arg) } struct tls_ticket * -relay_get_ticket_key(unsigned char keyname[16]) +relay_get_ticket_key(unsigned char *keyname) { if (keyname) { if (timingsafe_memcmp(keyname, @@ -2570,7 +2570,7 @@ relay_get_ticket_key(unsigned char keyname[16]) } int -relay_tls_session_ticket(SSL *ssl, unsigned char keyname[16], unsigned char *iv, +relay_tls_session_ticket(SSL *ssl, unsigned char *keyname, unsigned char *iv, EVP_CIPHER_CTX *ctx, HMAC_CTX *hctx, int mode) { struct tls_ticket *key; |