summaryrefslogtreecommitdiff
path: root/lib/gnutls_mpi.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2003-03-21 17:52:14 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2003-03-21 17:52:14 +0000
commit5d4ffbbeec12016b874d80590f49d3dfe25805b0 (patch)
tree6e42fea84278bb2ee573d8e719008a2468a0760b /lib/gnutls_mpi.c
parent90e79a4ffdcb4833c91bc9312c5b7f7ec9abc00b (diff)
downloadgnutls-5d4ffbbeec12016b874d80590f49d3dfe25805b0.tar.gz
*** empty log message ***
Diffstat (limited to 'lib/gnutls_mpi.c')
-rw-r--r--lib/gnutls_mpi.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/lib/gnutls_mpi.c b/lib/gnutls_mpi.c
index 8406a6fb21..64d885ce24 100644
--- a/lib/gnutls_mpi.c
+++ b/lib/gnutls_mpi.c
@@ -26,7 +26,6 @@
#include <gnutls_int.h>
#include <libtasn1.h>
#include <gnutls_errors.h>
-#include <gnutls_num.h>
/* Functions that refer to the libgcrypt library.
*/
@@ -107,37 +106,6 @@ size_t s_len;
return 0;
}
-/* this function reads a (small) unsigned integer
- * from asn1 structs. Combines the read and the convertion
- * steps.
- */
-int _gnutls_x509_read_ui( ASN1_TYPE node, const char* value,
- opaque* tmpstr, int tmpstr_size, unsigned int* ret)
-{
-int len, result;
-
- len = tmpstr_size;
- result = asn1_read_value( node, value, tmpstr, &len);
- if (result != ASN1_SUCCESS) {
- return _gnutls_asn2err(result);
- }
-
- if (len == 1)
- *ret = tmpstr[0];
- else if (len == 2)
- *ret = _gnutls_read_uint16(tmpstr);
- else if (len == 3)
- *ret = _gnutls_read_uint24(tmpstr);
- else if (len == 4)
- *ret = _gnutls_read_uint32(tmpstr);
- else {
- gnutls_assert();
- return GNUTLS_E_UNIMPLEMENTED_FEATURE;
- }
-
- return 0;
-}
-
/* Writes the specified integer into the specified node.
*/
int _gnutls_x509_write_int( ASN1_TYPE node, const char* value, GNUTLS_MPI mpi)