summaryrefslogtreecommitdiffstats
path: root/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authortb <tb@openbsd.org>2020-10-11 02:44:27 +0000
committertb <tb@openbsd.org>2020-10-11 02:44:27 +0000
commita522ba32a82bca3485c22278fdab0179a1233b61 (patch)
tree50c97257e3b51e2a78d9fa1c6f1046514ada2859 /lib/libssl/ssl_locl.h
parentUpdate regress for method changes. (diff)
downloadwireguard-openbsd-a522ba32a82bca3485c22278fdab0179a1233b61.tar.xz
wireguard-openbsd-a522ba32a82bca3485c22278fdab0179a1233b61.zip
Make profile_name const in srtp_find_profile_by_name()
There is no reason (and there never was any) for profile_name to be non-const, it was always just passed to strncmp(). Changing this allows removing an ugly instance of casting away const. ok guenther jsing
Diffstat (limited to 'lib/libssl/ssl_locl.h')
-rw-r--r--lib/libssl/ssl_locl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/ssl_locl.h b/lib/libssl/ssl_locl.h
index e341e9eda2e..5d41417df82 100644
--- a/lib/libssl/ssl_locl.h
+++ b/lib/libssl/ssl_locl.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ssl_locl.h,v 1.302 2020/10/11 02:22:27 jsing Exp $ */
+/* $OpenBSD: ssl_locl.h,v 1.303 2020/10/11 02:44:27 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -1413,7 +1413,7 @@ void SSL_error_internal(const SSL *s, int r, char *f, int l);
#ifndef OPENSSL_NO_SRTP
-int srtp_find_profile_by_name(char *profile_name,
+int srtp_find_profile_by_name(const char *profile_name,
const SRTP_PROTECTION_PROFILE **pptr, unsigned int len);
int srtp_find_profile_by_num(unsigned int profile_num,
const SRTP_PROTECTION_PROFILE **pptr);