]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
added missing files
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 18 Jun 2001 19:50:53 +0000 (19:50 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 18 Jun 2001 19:50:53 +0000 (19:50 +0000)
lib/gnutls_gcry.c [new file with mode: 0644]
lib/gnutls_gcry.h [new file with mode: 0644]

diff --git a/lib/gnutls_gcry.c b/lib/gnutls_gcry.c
new file mode 100644 (file)
index 0000000..2c9b1b9
--- /dev/null
@@ -0,0 +1,29 @@
+/*
+ *      Copyright (C) 2001 Nikos Mavroyanopoulos
+ *
+ * This file is part of GNUTLS.
+ *
+ * GNUTLS is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * GNUTLS is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
+ */
+
+#include <defines.h>
+#include <gnutls_gcry.h>
+
+void _gnutls_mpi_release( MPI* x) {
+       if (*x==NULL) return;
+       gcry_mpi_release(*x);
+       *x=NULL;
+}
+       
\ No newline at end of file
diff --git a/lib/gnutls_gcry.h b/lib/gnutls_gcry.h
new file mode 100644 (file)
index 0000000..914ecca
--- /dev/null
@@ -0,0 +1,10 @@
+#ifndef GNUTLS_GCRY_H
+# define GNUTLS_GCRY_H
+
+# include <gcrypt.h>
+
+# define gcry_mpi_alloc_like(x) gcry_mpi_new(gcry_mpi_get_nbits(x)) 
+
+void _gnutls_mpi_release( MPI* x);
+
+#endif