Browse code

bb11041 - Add cl_initialize_crypto() to the example file

Shawn Webb authored on 2014/06/21 05:09:28
Showing 3 changed files
... ...
@@ -45,6 +45,8 @@ int main(int argc, char **argv)
45 45
 	const char *virname;
46 46
 	struct cl_engine *engine;
47 47
 
48
+    cl_initialize_crypto();
49
+
48 50
 
49 51
     if(argc != 2) {
50 52
 	printf("Usage: %s file\n", argv[0]);
... ...
@@ -174,6 +174,17 @@ typedef enum {
174 174
 struct cl_engine;
175 175
 struct cl_settings;
176 176
 
177
+/**
178
+ * Initialize the crypto system.
179
+ * @return Always returns 0
180
+ */
181
+int cl_initialize_crypto(void);
182
+
183
+/**
184
+ * Cleanup the crypto system prior to program exit
185
+ */
186
+void cl_cleanup_crypto(void);
187
+
177 188
 #define CL_INIT_DEFAULT	0x0
178 189
 extern int cl_init(unsigned int initoptions);
179 190
 
... ...
@@ -43,16 +43,6 @@
43 43
 #define SHA1_HASH_SIZE 20
44 44
 #define SHA256_HASH_SIZE 32
45 45
 
46
-/**
47
- * Initialize the crypto system.
48
- * @return Always returns 0
49
- */
50
-int cl_initialize_crypto(void);
51
-
52
-/** Clean up the crypto system prior to program exit.
53
- */
54
-void cl_cleanup_crypto(void);
55
-
56 46
 /** Generate a hash of data.
57 47
  @param[in] alg The hashing algorithm to use
58 48
  @param[in] buf The data to be hashed