summaryrefslogtreecommitdiff
path: root/lib/gnutls_global.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2009-11-29 00:11:12 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2009-11-29 01:08:05 +0200
commit0477fd0883cbd9cd9809c3b8029ce146187b5431 (patch)
tree197ec8f844aee340bc79b842a3a400eed3aecaa5 /lib/gnutls_global.c
parent02ee5842f8f5f37ee93e258d5edfc2560b00ac2c (diff)
downloadgnutls-0477fd0883cbd9cd9809c3b8029ce146187b5431.tar.gz
Added cryptodev support (/dev/crypto). Tested with http://www.logix.cz/michal/devel/cryptodev/.
Added benchmark utility for AES. Exported API to access encryption algorithms.
Diffstat (limited to 'lib/gnutls_global.c')
-rw-r--r--lib/gnutls_global.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gnutls_global.c b/lib/gnutls_global.c
index 8930de25cc..3f5a154c25 100644
--- a/lib/gnutls_global.c
+++ b/lib/gnutls_global.c
@@ -30,6 +30,7 @@
#include <gcrypt.h>
#include <gnutls_extensions.h> /* for _gnutls_ext_init */
+#include <gnutls_cryptodev.h>
#include "sockets.h"
#include "gettext.h"
@@ -246,6 +247,8 @@ gnutls_global_init (void)
gnutls_assert ();
goto out;
}
+
+ _gnutls_cryptodev_init();
out:
return result;
@@ -271,6 +274,7 @@ gnutls_global_deinit (void)
asn1_delete_structure (&_gnutls_gnutls_asn);
asn1_delete_structure (&_gnutls_pkix1_asn);
_gnutls_crypto_deregister ();
+ _gnutls_cryptodev_deinit();
}
_gnutls_init--;
}