summaryrefslogtreecommitdiffstats
path: root/examples/ncr_lib.c
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-05 23:47:33 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-23 20:01:59 +0200
commitfff54ce6f89dc250caa3afdffa7e17d2e889329a (patch)
tree3c3540520ce0836c7d02ebe814f0cbd4a2084c34 /examples/ncr_lib.c
parenta575a898c2e9a322e6a0db9cb3e9d0e6f3876c06 (diff)
downloadcryptodev-linux-fff54ce6f89dc250caa3afdffa7e17d2e889329a.tar.gz
cryptodev-linux-fff54ce6f89dc250caa3afdffa7e17d2e889329a.tar.xz
cryptodev-linux-fff54ce6f89dc250caa3afdffa7e17d2e889329a.zip
Don't set the master key in an example program.
That is an operation reserved for root, and should be done during system initialization.
Diffstat (limited to 'examples/ncr_lib.c')
-rw-r--r--examples/ncr_lib.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/examples/ncr_lib.c b/examples/ncr_lib.c
index c041ca7..b68a43c 100644
--- a/examples/ncr_lib.c
+++ b/examples/ncr_lib.c
@@ -187,8 +187,6 @@ test_ncr_store_wrap_key(void)
*/
fprintf(stdout, "\tKey Storage wrap test...\n");
- /* create master key */
- DIAGNOSTIC_CALL(ncr_masterkey_set, DKEY, 16);
/* create empty key2 */
DIAGNOSTIC_CALL(ncr_key_init, &key2);
/* import into a key2 */