sysutils/voucher: fix build with openssl 1

OpenSSL 1 calls EVP_PKEY_get_bits() EVP_PKEY_bits().
Add a compatibility stub to fix the build.

While here bump the portrevision, which we neglected to do in the previous
change.
This commit is contained in:
Kristof Provost
2023-07-06 21:50:48 +02:00
parent cbc322f30f
commit aed41a2ec1
2 changed files with 8 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@
PORTNAME= voucher
PORTVERSION= 0.1
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= sysutils
MASTER_SITES= # empty
DISTFILES= # none
+7
View File
@@ -128,6 +128,13 @@
#include <openssl/err.h>
#endif
#if OPENSSL_VERSION_NUMBER < 0x30000000L
int EVP_PKEY_get_bits(EVP_PKEY *key)
{
return EVP_PKEY_bits(key);
}
#endif
#ifdef DEBUG
#define HELP "\n\
voucher [-d] [-c cfg_file] -k public_key voucher\n\