diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-04-18 13:08:19 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-04-18 13:08:19 +0200 |
commit | e226e5c350a84ff2a04ed183e5bde4fae6d11489 (patch) | |
tree | ad71d7a92fc04bf03e51665b595da1a9f994d21e /src/include/taler_crypto_lib.h | |
parent | e61b83495e1a20e3661cd31fbd9d71899f6a2380 (diff) |
implementing TALER_refresh_link_encrypted_encode, and adding test
Diffstat (limited to 'src/include/taler_crypto_lib.h')
-rw-r--r-- | src/include/taler_crypto_lib.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/include/taler_crypto_lib.h b/src/include/taler_crypto_lib.h index 752d2bfd8..9ba13a6eb 100644 --- a/src/include/taler_crypto_lib.h +++ b/src/include/taler_crypto_lib.h @@ -544,6 +544,17 @@ TALER_refresh_link_encrypted_decode (const char *buf, size_t buf_len); -/* FIXME: should also have _encode API... */ +/** + * Encode encrypted refresh link information to buffer. + * + * @param rle refresh link to encode + * @param[out] buf_len set number of bytes returned + * @return NULL on error, otherwise buffer with encoded @a rle + */ +char * +TALER_refresh_link_encrypted_encode (const struct TALER_RefreshLinkEncrypted *rle, + size_t *buf_len); + + #endif |