Commit 6fee4429 authored by jan.koester's avatar jan.koester
Browse files

fixe compiler issues

parent f70c9c91
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -337,9 +337,6 @@ namespace netplus {
		void prime_read();
#endif

		// ✅ Static helper to load RSA key from DER bytes into rsa object
		static bool loadRsaFromDer(const std::vector<uint8_t>& derData, netplus::rsa& out_rsa);

		bool hasPendingWrite() const override {
			// Return true if there's queued data not yet sent
			// Check _send_queue (queued but not flushed)
+2 −2
Original line number Diff line number Diff line
@@ -122,8 +122,8 @@ int main() {
        netplus::ssl::CertificateBundle bundle2;
        bundle2.cert = cert2;
        bundle2.privateKeyDer = std::vector<uint8_t>(test2_key_der.begin(), test2_key_der.end());
        // Pre-load RSA key into bundle
        if (!netplus::ssl::loadRsaFromDer(bundle2.privateKeyDer, bundle2.rsa_key)) {
        // Pre-load RSA key into bundle using the rsa::loadRsaFromDerFile static function
        if (!netplus::rsa::loadRsaFromDerFile(bundle2.privateKeyDer, bundle2.rsa_key)) {
             std::cerr << "Failed to load RSA key 2!" << std::endl;
             std::cerr.flush();
             return 1;