Bump OpenSSL requirement to 1.1.0

This commit is contained in:
Cameron Gutman
2025-11-28 16:59:32 -06:00
parent b80cfce2ce
commit 040e3896f1
2 changed files with 2 additions and 13 deletions

View File

@@ -3,7 +3,7 @@ set(SO_VERSION 4)
find_package(LibUUID REQUIRED)
find_package(Threads REQUIRED)
find_package(CURL REQUIRED)
find_package(OpenSSL 1.0.2 REQUIRED)
find_package(OpenSSL 1.1.0 REQUIRED)
find_package(EXPAT REQUIRED)
pkg_check_modules(AVAHI REQUIRED avahi-client)

View File

@@ -22,10 +22,7 @@
#include <openssl/pem.h>
#include <openssl/conf.h>
#include <openssl/pkcs12.h>
#ifndef OPENSSL_NO_ENGINE
#include <openssl/engine.h>
#endif
#include <openssl/rsa.h>
static const int NUM_BITS = 2048;
static const int SERIAL = 0;
@@ -41,18 +38,10 @@ CERT_KEY_PAIR mkcert_generate() {
bio_err = BIO_new_fp(stderr, BIO_NOCLOSE);
OpenSSL_add_all_algorithms();
ERR_load_crypto_strings();
mkcert(&x509, &pkey, NUM_BITS, SERIAL, NUM_YEARS);
p12 = PKCS12_create("limelight", "GameStream", pkey, x509, NULL, 0, 0, 0, 0, 0);
#ifndef OPENSSL_NO_ENGINE
ENGINE_cleanup();
#endif
CRYPTO_cleanup_all_ex_data();
BIO_free(bio_err);
return (CERT_KEY_PAIR) {x509, pkey, p12};