summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_cmp.c
diff options
context:
space:
mode:
authortb <>2018-05-01 19:01:28 +0000
committertb <>2018-05-01 19:01:28 +0000
commita25a0cc2cb4d355062b3c8b6944d4e2da213facd (patch)
treee9d6db4dc429199f91cfda5cd0905819d2440282 /src/lib/libcrypto/x509/x509_cmp.c
parent9b39dce8f6a1410a06e212d7ed7364d9dc7e3f13 (diff)
downloadopenbsd-a25a0cc2cb4d355062b3c8b6944d4e2da213facd.tar.gz
openbsd-a25a0cc2cb4d355062b3c8b6944d4e2da213facd.tar.bz2
openbsd-a25a0cc2cb4d355062b3c8b6944d4e2da213facd.zip
Convert a handful of X509_*() functions to take const as in OpenSSL.
tested in a bulk by sthen ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_cmp.c')
-rw-r--r--src/lib/libcrypto/x509/x509_cmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_cmp.c b/src/lib/libcrypto/x509/x509_cmp.c
index ab0dbcba39..73d060f404 100644
--- a/src/lib/libcrypto/x509/x509_cmp.c
+++ b/src/lib/libcrypto/x509/x509_cmp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_cmp.c,v 1.30 2018/03/17 14:57:23 jsing Exp $ */ 1/* $OpenBSD: x509_cmp.c,v 1.31 2018/05/01 19:01:28 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 *
@@ -327,7 +327,7 @@ X509_get_pubkey(X509 *x)
327} 327}
328 328
329EVP_PKEY * 329EVP_PKEY *
330X509_get0_pubkey(X509 *x) 330X509_get0_pubkey(const X509 *x)
331{ 331{
332 if (x == NULL || x->cert_info == NULL) 332 if (x == NULL || x->cert_info == NULL)
333 return (NULL); 333 return (NULL);