diff options
author | Yawning Angel <yawning@schwanenlied.me> | 2015-04-25 08:23:15 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2015-04-28 10:19:08 -0400 |
commit | 915c7438a77edfaf3103b69cb494a4f069a79a0c (patch) | |
tree | 1aec80453d2aa691de928349d233a85374b4305c /src/common/crypto.h | |
parent | 63a90f2df4dcd7fff862ca3849f3aa3b1dec7e84 (diff) | |
download | tor-915c7438a77edfaf3103b69cb494a4f069a79a0c.tar.gz tor-915c7438a77edfaf3103b69cb494a4f069a79a0c.zip |
Add "ADD_ONION"/"DEL_ONION" and "GETINFO onions/*" to the controller.
These commands allow for the creation and management of ephemeral
Onion ("Hidden") services that are either bound to the lifetime of
the originating control connection, or optionally the lifetime of
the tor instance.
Implements #6411.
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index 1ac02ea7a5..8b620d910c 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -184,6 +184,9 @@ int crypto_pk_get_all_digests(crypto_pk_t *pk, digests_t *digests_out); int crypto_pk_get_fingerprint(crypto_pk_t *pk, char *fp_out,int add_space); int crypto_pk_get_hashed_fingerprint(crypto_pk_t *pk, char *fp_out); +int crypto_pk_base64_encode(const crypto_pk_t *pk, char **priv_out); +crypto_pk_t *crypto_pk_base64_decode(const char *str, size_t len); + /* symmetric crypto */ const char *crypto_cipher_get_key(crypto_cipher_t *env); |