gcrypt: Make generic DH constructor static
authorTobias Brunner <tobias@strongswan.org>
Wed, 12 Sep 2018 10:56:11 +0000 (12:56 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 12 Sep 2018 14:25:00 +0000 (16:25 +0200)
src/libstrongswan/plugins/gcrypt/gcrypt_dh.c

index f59144a..b57f05e 100644 (file)
@@ -195,8 +195,8 @@ METHOD(diffie_hellman_t, destroy, void,
 /*
  * Generic internal constructor
  */
-gcrypt_dh_t *create_generic(diffie_hellman_group_t group, size_t exp_len,
-                                                       chunk_t g, chunk_t p)
+static gcrypt_dh_t *create_generic(diffie_hellman_group_t group, size_t exp_len,
+                                                                  chunk_t g, chunk_t p)
 {
        private_gcrypt_dh_t *this;
        gcry_error_t err;