Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
bb11041 - Add cl_initialize_crypto() to the example file
  • Loading branch information
Shawn Webb committed Jun 20, 2014
1 parent ca78e3b commit 9363412
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
2 changes: 2 additions & 0 deletions examples/ex1.c
Expand Up @@ -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]);
Expand Down
11 changes: 11 additions & 0 deletions libclamav/clamav.h
Expand Up @@ -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);

Expand Down
10 changes: 0 additions & 10 deletions libclamav/crypto.h
Expand Up @@ -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
Expand Down

0 comments on commit 9363412

Please sign in to comment.