summaryrefslogtreecommitdiff
path: root/src/lib/libssl/ssl_locl.h
diff options
context:
space:
mode:
authortb <>2020-10-11 02:44:27 +0000
committertb <>2020-10-11 02:44:27 +0000
commit8ba9fa49164f17ec9a4156de8eb45d9515186459 (patch)
treeb4c654a1b989295114bd40c5e379457740b4cacc /src/lib/libssl/ssl_locl.h
parent016f3d152c7794fc6ca33b907778816d2891be00 (diff)
downloadopenbsd-8ba9fa49164f17ec9a4156de8eb45d9515186459.tar.gz
openbsd-8ba9fa49164f17ec9a4156de8eb45d9515186459.tar.bz2
openbsd-8ba9fa49164f17ec9a4156de8eb45d9515186459.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 'src/lib/libssl/ssl_locl.h')
-rw-r--r--src/lib/libssl/ssl_locl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libssl/ssl_locl.h b/src/lib/libssl/ssl_locl.h
index e341e9eda2..5d41417df8 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.302 2020/10/11 02:22:27 jsing Exp $ */ 1/* $OpenBSD: ssl_locl.h,v 1.303 2020/10/11 02:44:27 tb 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 *
@@ -1413,7 +1413,7 @@ void SSL_error_internal(const SSL *s, int r, char *f, int l);
1413 1413
1414#ifndef OPENSSL_NO_SRTP 1414#ifndef OPENSSL_NO_SRTP
1415 1415
1416int srtp_find_profile_by_name(char *profile_name, 1416int srtp_find_profile_by_name(const char *profile_name,
1417 const SRTP_PROTECTION_PROFILE **pptr, unsigned int len); 1417 const SRTP_PROTECTION_PROFILE **pptr, unsigned int len);
1418int srtp_find_profile_by_num(unsigned int profile_num, 1418int srtp_find_profile_by_num(unsigned int profile_num,
1419 const SRTP_PROTECTION_PROFILE **pptr); 1419 const SRTP_PROTECTION_PROFILE **pptr);