summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2001-12-11 15:29:12 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2001-12-11 15:29:12 +0000
commit5f18cb8ab7640fb3a81f1ace32f9efa3148a8b17 (patch)
treea0e382b284067abd20a6560adeb7fb706a89a3f9
parent3d6cdc19aef9605c7bd9a90743e1bd6ececd0f0b (diff)
downloadgnutls-5f18cb8ab7640fb3a81f1ace32f9efa3148a8b17.tar.gz
corrected bugs in STD formating (back to USG).
-rw-r--r--lib/gnutls_gcry.c10
-rw-r--r--lib/gnutls_gcry.h2
2 files changed, 1 insertions, 11 deletions
diff --git a/lib/gnutls_gcry.c b/lib/gnutls_gcry.c
index f519d345b3..7ea3abcca0 100644
--- a/lib/gnutls_gcry.c
+++ b/lib/gnutls_gcry.c
@@ -34,19 +34,11 @@ MPI _gnutls_mpi_new( int bits) {
}
int _gnutls_mpi_scan( GCRY_MPI *ret_mpi, const opaque *buffer, size_t *nbytes ) {
- return gcry_mpi_scan( ret_mpi, GCRYMPI_FMT_STD, buffer, nbytes);
-
-}
-
-int _gnutls_mpi_scan_raw( GCRY_MPI *ret_mpi, const opaque *buffer, size_t *nbytes ) {
return gcry_mpi_scan( ret_mpi, GCRYMPI_FMT_USG, buffer, nbytes);
}
int _gnutls_mpi_print( opaque *buffer, size_t *nbytes, const GCRY_MPI a ) {
- return gcry_mpi_print( GCRYMPI_FMT_STD, buffer, nbytes, a);
-}
-
-int _gnutls_mpi_print_raw( opaque *buffer, size_t *nbytes, const GCRY_MPI a ) {
return gcry_mpi_print( GCRYMPI_FMT_USG, buffer, nbytes, a);
}
+
diff --git a/lib/gnutls_gcry.h b/lib/gnutls_gcry.h
index de14f6e4ad..df42a09d66 100644
--- a/lib/gnutls_gcry.h
+++ b/lib/gnutls_gcry.h
@@ -10,9 +10,7 @@ MPI _gnutls_mpi_new( int);
void _gnutls_mpi_release( MPI* x);
int _gnutls_mpi_scan( GCRY_MPI *ret_mpi, const opaque *buffer, size_t *nbytes );
-int _gnutls_mpi_scan_raw( GCRY_MPI *ret_mpi, const opaque *buffer, size_t *nbytes );
int _gnutls_mpi_print( opaque *buffer, size_t *nbytes, const GCRY_MPI a );
-int _gnutls_mpi_print_raw( opaque *buffer, size_t *nbytes, const GCRY_MPI a );
#endif