]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
wolfssl: Set RSA key type
authorAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 30 May 2021 10:39:59 +0000 (12:39 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Sun, 30 May 2021 10:40:08 +0000 (12:40 +0200)
src/libstrongswan/plugins/wolfssl/wolfssl_rsa_private_key.c

index 0c1e6ee06d27014cfba4c16ad3c361d7fa1fb691..2270b462092e6f6c9edfb854e54745eaa226330a 100644 (file)
@@ -686,6 +686,8 @@ wolfssl_rsa_private_key_t *wolfssl_rsa_private_key_load(key_type_t type,
        }
        else if (n.ptr && e.ptr && d.ptr)
        {
+               this->rsa.type = RSA_PRIVATE;
+
                if (mp_read_unsigned_bin(&this->rsa.n, n.ptr, n.len) != 0)
                {
                        goto error;