cl_crypt.h 633 B

123456789101112131415161718192021222324
  1. /** BEGIN COPYRIGHT BLOCK
  2. * Copyright (C) 2010/ Red Hat, Inc.
  3. * All rights reserved.
  4. *
  5. * License: GPL (version 3 or any later version).
  6. * See LICENSE for details.
  7. * END COPYRIGHT BLOCK **/
  8. #ifdef HAVE_CONFIG_H
  9. # include <config.h>
  10. #endif
  11. #ifndef _CLCRYPT_H_
  12. #define _CLCRYPT_H_
  13. #include "pk11func.h"
  14. #include "keyhi.h"
  15. #include "nss.h"
  16. #include "cert.h"
  17. int clcrypt_init(const CL5DBConfig *config, void **clcrypt_handle);
  18. int clcrypt_encrypt_value(void *clcrypt_handle, struct berval *in, struct berval **out);
  19. int clcrypt_decrypt_value(void *state_priv, struct berval *in, struct berval **out);
  20. #endif /* _CLCRYPT_H_ */