summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-07 08:47:14 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-24 20:58:32 +0200
commit0746a4c2bf359657b7fc9b0544a5cc0c5175a4d7 (patch)
tree21e7f1be02a72e957525e49528b61f8542b0efb6
parent0bb60fc9b52dcfbac8356db8682a3cb9c595813f (diff)
downloadcryptodev-linux-0746a4c2bf359657b7fc9b0544a5cc0c5175a4d7.tar.gz
cryptodev-linux-0746a4c2bf359657b7fc9b0544a5cc0c5175a4d7.tar.xz
cryptodev-linux-0746a4c2bf359657b7fc9b0544a5cc0c5175a4d7.zip
Provide a nicer example on including <ncrypto.h>
-rw-r--r--examples/ncr_lib.c4
-rw-r--r--examples/pk_lib.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/examples/ncr_lib.c b/examples/ncr_lib.c
index d0f435e..ad69fe7 100644
--- a/examples/ncr_lib.c
+++ b/examples/ncr_lib.c
@@ -12,10 +12,10 @@
//#include <sys/ioctl.h>
#include <sys/types.h>
//#include <sys/stat.h>
-#include "../ncr.h"
-#include "../userspace/ncrypto.h"
#include <stdlib.h>
+#include <ncrypto.h>
+
#define DATA_SIZE 4096
#define KEY_DATA_SIZE 16
#define WRAPPED_KEY_DATA_SIZE 32
diff --git a/examples/pk_lib.c b/examples/pk_lib.c
index ff425d0..f85cbe0 100644
--- a/examples/pk_lib.c
+++ b/examples/pk_lib.c
@@ -12,9 +12,9 @@
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
-#include "../ncr.h"
-#include "../userspace/ncrypto.h"
#include <stdlib.h>
+
+#include <ncrypto.h>
#include <gnutls/gnutls.h>
#include <gnutls/x509.h>
#if GNUTLS_VERSION_NUMBER >= 0x020b00