X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fgcrypt%2Frsa.h;h=14f0381832ac8279593712f03db6e8f51cfb41f5;hb=bc4df95a48857aa4ab65fb47eabd48c48d650ca0;hp=c27f19676a8ec3226a0a2e8ee19f6653c745076f;hpb=77cd819058de43a5fcea54300dde50e03088c318;p=tinc diff --git a/src/gcrypt/rsa.h b/src/gcrypt/rsa.h index c27f1967..14f03818 100644 --- a/src/gcrypt/rsa.h +++ b/src/gcrypt/rsa.h @@ -3,7 +3,7 @@ /* rsa.h -- RSA key handling - Copyright (C) 2007 Guus Sliepen + Copyright (C) 2007-2022 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -22,10 +22,16 @@ #include +#include "../rsa.h" +#include "../xalloc.h" + +#define TINC_RSA_INTERNAL typedef struct rsa { gcry_mpi_t n; gcry_mpi_t e; gcry_mpi_t d; } rsa_t; +extern rsa_t *rsa_new(void) ATTR_MALLOC ATTR_DEALLOCATOR(rsa_free); + #endif