mirror of
https://github.com/boykopovar/AnyPS5.git
synced 2026-10-28 00:35:47 +00:00
SSLeay() returns 0x20000000, the value measured on a PS5 with firmware 13.40 and the SSLEAY_VERSION_NUMBER of LibreSSL 2.5.4, which the module is. The guest_libressl_version test checks it.
19 lines
573 B
C++
19 lines
573 B
C++
#include "prx/libSceLibreSsl/include/Api.hpp"
|
|
#include "prx/libc/include/general/VabiMacros.hpp"
|
|
#include <cstdint>
|
|
#include <cstdio>
|
|
#include <cstdlib>
|
|
#include <source_location>
|
|
|
|
static void Require(bool condition, std::source_location location = std::source_location::current()) {
|
|
if (condition) return;
|
|
std::fprintf(stderr, "LibreSSL version check failed at line %u\n", location.line());
|
|
std::abort();
|
|
}
|
|
|
|
int main() {
|
|
Require(SSLeay_nid_postfix() == std::uint64_t{0x20000000});
|
|
Require(SSLeay_nid_postfix() == SSLeay_nid_postfix());
|
|
return 0;
|
|
}
|