mingw: fix static linking with recent ncurses
[tinc] / src / gcrypt / rsa.h
index c27f196..14f0381 100644 (file)
@@ -3,7 +3,7 @@
 
 /*
     rsa.h -- RSA key handling
-    Copyright (C) 2007 Guus Sliepen <guus@tinc-vpn.org>
+    Copyright (C) 2007-2022 Guus Sliepen <guus@tinc-vpn.org>
 
     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
 
 #include <gcrypt.h>
 
+#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