mirror of
https://github.com/openbsd/src.git
synced 2026-04-24 14:14:37 +00:00
rpki-client: make the X509_NAME *xissuer const
X509_get_issuer_name() isn't const correct in LibreSSL and OpenSSL < 4 and it returns a modifiable X509_NAME *. The xissuer is only passed to X509_NAME_oneline() which takes a const X509_NAME, so it can be const. discussed with claudio
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: print.c,v 1.74 2026/01/20 16:49:03 tb Exp $ */
|
||||
/* $OpenBSD: print.c,v 1.75 2026/04/03 02:07:15 tb Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2021 Claudio Jeker <claudio@openbsd.org>
|
||||
* Copyright (c) 2019 Kristaps Dzonsons <kristaps@bsd.lv>
|
||||
@@ -378,7 +378,7 @@ crl_print(const struct crl *p)
|
||||
{
|
||||
STACK_OF(X509_REVOKED) *revlist;
|
||||
X509_REVOKED *rev;
|
||||
X509_NAME *xissuer;
|
||||
const X509_NAME *xissuer;
|
||||
int i;
|
||||
char *issuer, *serial;
|
||||
time_t t;
|
||||
|
||||
Reference in New Issue
Block a user