summaryrefslogtreecommitdiffstats
path: root/include/ncrypto
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-10-13 23:10:28 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-10-13 23:10:28 +0200
commitb777e41ccd09ed9202d38e4506a31b3e5780b098 (patch)
tree76001e15d74e5a4c8bbb6a6814f2d3632821bdaf /include/ncrypto
parent4cf63ca284a1fe2b11170e8a50b2789f8491299a (diff)
downloadncrypto-b777e41ccd09ed9202d38e4506a31b3e5780b098.tar.gz
ncrypto-b777e41ccd09ed9202d38e4506a31b3e5780b098.tar.xz
ncrypto-b777e41ccd09ed9202d38e4506a31b3e5780b098.zip
Automatically initialize NSS on first use.
Diffstat (limited to 'include/ncrypto')
-rw-r--r--include/ncrypto/ncrypto.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ncrypto/ncrypto.h b/include/ncrypto/ncrypto.h
index e47b46c..25cc285 100644
--- a/include/ncrypto/ncrypto.h
+++ b/include/ncrypto/ncrypto.h
@@ -40,6 +40,10 @@ Red Hat author: Miloslav Trmač <mitr@redhat.com> */
/* Global state */
+/* A program should pair calls of ncr_open () with ncr_close (). In absence
+ of ncr_open (), the library will be initialized automatically, and
+ ncr_close () will deinitialize it. */
+
CK_RV ncr_open (void);
CK_RV ncr_close (void);