]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
wolfssl: Fix for issue with blinding not defined
authorDavid Garske <david@wolfssl.com>
Fri, 18 Oct 2019 23:09:36 +0000 (16:09 -0700)
committerTobias Brunner <tobias@strongswan.org>
Mon, 21 Oct 2019 07:56:55 +0000 (09:56 +0200)
Closes strongswan/strongswan#156.

src/libstrongswan/plugins/wolfssl/wolfssl_rsa_private_key.c

index c936266c899b5d3a6f96bc8d3d60977fa2c367ec..0c1e6ee06d27014cfba4c16ad3c361d7fa1fb691 100644 (file)
@@ -419,7 +419,9 @@ static private_wolfssl_rsa_private_key_t *create_empty()
                free(this);
                return NULL;
        }
+#ifdef WC_RSA_BLINDING
        this->rsa.rng = &this->rng;
+#endif
 
        return this;
 }