summaryrefslogtreecommitdiff
path: root/cipher/cipher.c
diff options
context:
space:
mode:
Diffstat (limited to 'cipher/cipher.c')
-rw-r--r--cipher/cipher.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cipher/cipher.c b/cipher/cipher.c
index 73544d23..b6cdf00e 100644
--- a/cipher/cipher.c
+++ b/cipher/cipher.c
@@ -1310,10 +1310,12 @@ _gcry_cipher_init (void)
according size. In case there are less cipher modules than
*LIST_LENGTH, *LIST_LENGTH is updated to the correct number. */
gcry_error_t
-gcry_cipher_list (int *list, int *list_length)
+gcry_cipher_list (int **list, int *list_length)
{
gcry_err_code_t err = GPG_ERR_NO_ERROR;
+ REGISTER_DEFAULT_CIPHERS;
+
ath_mutex_lock (&ciphers_registered_lock);
err = _gcry_module_list (ciphers_registered, list, list_length);
ath_mutex_unlock (&ciphers_registered_lock);