Files
AnyPS5/core/libs/tests/GuestLibreSslVersion.cpp
T
KernelPanicNT 601226da9c feat(libSceLibreSsl): return the measured version from SSLeay
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.
2026-10-26 14:46:30 +01:00

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;
}