bb11041 - Add cl_initialize_crypto() to the example file

pull/6/head
Shawn Webb 11 years ago
parent ca78e3b35c
commit 9363412bbb
  1. 2
      examples/ex1.c
  2. 11
      libclamav/clamav.h
  3. 10
      libclamav/crypto.h

@ -45,6 +45,8 @@ int main(int argc, char **argv)
const char *virname;
struct cl_engine *engine;
cl_initialize_crypto();
if(argc != 2) {
printf("Usage: %s file\n", argv[0]);

@ -174,6 +174,17 @@ typedef enum {
struct cl_engine;
struct cl_settings;
/**
* Initialize the crypto system.
* @return Always returns 0
*/
int cl_initialize_crypto(void);
/**
* Cleanup the crypto system prior to program exit
*/
void cl_cleanup_crypto(void);
#define CL_INIT_DEFAULT 0x0
extern int cl_init(unsigned int initoptions);

@ -43,16 +43,6 @@
#define SHA1_HASH_SIZE 20
#define SHA256_HASH_SIZE 32
/**
* Initialize the crypto system.
* @return Always returns 0
*/
int cl_initialize_crypto(void);
/** Clean up the crypto system prior to program exit.
*/
void cl_cleanup_crypto(void);
/** Generate a hash of data.
@param[in] alg The hashing algorithm to use
@param[in] buf The data to be hashed

Loading…
Cancel
Save