From: Nikos Mavrogiannopoulos Date: Mon, 18 Jun 2001 19:50:53 +0000 (+0000) Subject: added missing files X-Git-Tag: gnutls_0_1_4~12 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f83fa36e236bbcc091c7df016a8ed7d86e459c7b;p=thirdparty%2Fgnutls.git added missing files --- diff --git a/lib/gnutls_gcry.c b/lib/gnutls_gcry.c new file mode 100644 index 0000000000..2c9b1b9e29 --- /dev/null +++ b/lib/gnutls_gcry.c @@ -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 +#include + +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 index 0000000000..914ecca9f2 --- /dev/null +++ b/lib/gnutls_gcry.h @@ -0,0 +1,10 @@ +#ifndef GNUTLS_GCRY_H +# define GNUTLS_GCRY_H + +# include + +# define gcry_mpi_alloc_like(x) gcry_mpi_new(gcry_mpi_get_nbits(x)) + +void _gnutls_mpi_release( MPI* x); + +#endif