mirror of
https://github.com/netbirdio/FreeBSD-ports.git
synced 2026-05-22 18:42:42 -07:00
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:
@@ -2,7 +2,7 @@
|
||||
|
||||
PORTNAME= voucher
|
||||
PORTVERSION= 0.1
|
||||
PORTREVISION= 2
|
||||
PORTREVISION= 3
|
||||
CATEGORIES= sysutils
|
||||
MASTER_SITES= # empty
|
||||
DISTFILES= # none
|
||||
|
||||
@@ -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\
|
||||
|
||||
Reference in New Issue
Block a user