aboutsummaryrefslogtreecommitdiff
path: root/src/lib/crypt_ops/crypto_rsa.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-07-19 12:03:01 -0400
committerNick Mathewson <nickm@torproject.org>2018-08-21 12:24:08 -0400
commitaa45511250ed9509ca06b76497f66835796a7998 (patch)
tree71ad4c70c375598742ab8c99297031407c704df8 /src/lib/crypt_ops/crypto_rsa.h
parentcb5cfe3177bbf841e5ad18c0103b3d2ebe443e07 (diff)
downloadtor-aa45511250ed9509ca06b76497f66835796a7998.tar.gz
tor-aa45511250ed9509ca06b76497f66835796a7998.zip
Implement RSA for NSS.
Diffstat (limited to 'src/lib/crypt_ops/crypto_rsa.h')
-rw-r--r--src/lib/crypt_ops/crypto_rsa.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/crypt_ops/crypto_rsa.h b/src/lib/crypt_ops/crypto_rsa.h
index bcb2b51dd1..afc6c4201c 100644
--- a/src/lib/crypt_ops/crypto_rsa.h
+++ b/src/lib/crypt_ops/crypto_rsa.h
@@ -110,14 +110,6 @@ int crypto_pk_get_common_digests(crypto_pk_t *pk,
int crypto_pk_base64_encode_private(const crypto_pk_t *pk, char **priv_out);
crypto_pk_t *crypto_pk_base64_decode_private(const char *str, size_t len);
-#ifdef TOR_UNIT_TESTS
-#ifdef ENABLE_NSS
-struct SECItemStr;
-STATIC int secitem_uint_cmp(const struct SECItemStr *a,
- const struct SECItemStr *b);
-#endif
-#endif
-
#ifdef ENABLE_OPENSSL
/* Prototypes for private functions only used by tortls.c, crypto.c, and the
* unit tests. */
@@ -132,4 +124,12 @@ MOCK_DECL(struct evp_pkey_st *, crypto_pk_get_openssl_evp_pkey_,(
void crypto_pk_assign_public(crypto_pk_t *dest, const crypto_pk_t *src);
void crypto_pk_assign_private(crypto_pk_t *dest, const crypto_pk_t *src);
+#ifdef TOR_UNIT_TESTS
+#ifdef ENABLE_NSS
+struct SECItemStr;
+STATIC int secitem_uint_cmp(const struct SECItemStr *a,
+ const struct SECItemStr *b);
+#endif
+#endif
+
#endif