diff options
author | Moritz Schulte <mo@g10code.com> | 2003-06-13 16:19:47 +0000 |
---|---|---|
committer | Moritz Schulte <mo@g10code.com> | 2003-06-13 16:19:47 +0000 |
commit | e15b1571c3b9cc44c6c0400eca775101d254740e (patch) | |
tree | ff2cd97606597ea8ebc46eed765fc41dc3351f70 /cipher | |
parent | 23005573f543caa53c0b10e65f30cb54a47a0f57 (diff) | |
download | libgcrypt-e15b1571c3b9cc44c6c0400eca775101d254740e.tar.gz |
2003-06-11 Moritz Schulte <moritz@g10code.com>
* md.c (_gcry_md_init): New function.
* cipher.c (_gcry_cipher_init): New function.
* pubkey.c (_gcry_pk_init): New function.
Diffstat (limited to 'cipher')
-rw-r--r-- | cipher/cipher.c | 10 | ||||
-rw-r--r-- | cipher/md.c | 11 | ||||
-rw-r--r-- | cipher/pubkey.c | 12 |
3 files changed, 31 insertions, 2 deletions
diff --git a/cipher/cipher.c b/cipher/cipher.c index b69e35ea..36ffdbf9 100644 --- a/cipher/cipher.c +++ b/cipher/cipher.c @@ -1288,3 +1288,13 @@ gcry_cipher_algo_info (int algo, int what, void *buffer, size_t *nbytes) return gpg_error (err); } + +gpg_err_code_t +_gcry_cipher_init (void) +{ + gpg_err_code_t err = GPG_ERR_NO_ERROR; + + REGISTER_DEFAULT_CIPHERS; + + return err; +} diff --git a/cipher/md.c b/cipher/md.c index 7e68dec3..78f4b4ef 100644 --- a/cipher/md.c +++ b/cipher/md.c @@ -1187,6 +1187,16 @@ gcry_md_info (gcry_md_hd_t h, int cmd, void *buffer, size_t *nbytes) return gpg_error (err); } +gpg_err_code_t +_gcry_md_init (void) +{ + gpg_err_code_t err = GPG_ERR_NO_ERROR; + + REGISTER_DEFAULT_DIGESTS; + + return err; +} + int gcry_md_is_secure (gcry_md_hd_t a) @@ -1209,4 +1219,3 @@ gcry_md_is_enabled (gcry_md_hd_t a, int algo) value = 0; return value; } - diff --git a/cipher/pubkey.c b/cipher/pubkey.c index 6de6eb23..3584c61e 100644 --- a/cipher/pubkey.c +++ b/cipher/pubkey.c @@ -2124,7 +2124,7 @@ gcry_pk_get_keygrip (gcry_sexp_t key, unsigned char *array) memcpy (array, gcry_md_read (md, GCRY_MD_SHA1), 20); gcry_md_close (md); gcry_sexp_release (list); - return array; + return array; fail: if (l2) @@ -2255,3 +2255,13 @@ gcry_pk_algo_info (int id, int what, void *buffer, size_t *nbytes) return gpg_error (err); } + +gpg_err_code_t +_gcry_pk_init (void) +{ + gpg_err_code_t err = GPG_ERR_NO_ERROR; + + REGISTER_DEFAULT_PUBKEYS; + + return err; +} |