~ubuntu-branches/ubuntu/natty/libgcrypt11/natty-proposed

« back to all changes in this revision

Viewing changes to src/gcrypt-module.h

  • Committer: Bazaar Package Importer
  • Author(s): Bhavani Shankar
  • Date: 2009-05-16 20:13:32 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090516201332-czkobpu32w318i16
Tags: 1.4.4-2ubuntu1
* Merge from Debian unstable (LP: #364535), remaining changes:
  - Add libgcrypt11-udeb for use by cryptsetup-udeb.
  - Add clean-la.mk, and add a symlink for the .la
  - Install to /lib.

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#endif
33
33
#endif
34
34
 
 
35
/* The interfaces using the module system reserve a certain range of
 
36
   IDs for application use.  These IDs are not valid within Libgcrypt
 
37
   but Libgcrypt makes sure never to allocate such a module ID.  */
 
38
#define GCRY_MODULE_ID_USER      1024 
 
39
#define GCRY_MODULE_ID_USER_LAST 4095
 
40
 
 
41
 
35
42
/* This type represents a `module'.  */
36
43
typedef struct gcry_module *gcry_module_t;
37
44
 
88
95
 
89
96
/* Register a new cipher module whose specification can be found in
90
97
   CIPHER.  On success, a new algorithm ID is stored in ALGORITHM_ID
91
 
   and a pointer representhing this module is stored in MODULE.  */
 
98
   and a pointer representing this module is stored in MODULE.  */
92
99
gcry_error_t gcry_cipher_register (gcry_cipher_spec_t *cipher,
93
100
                                   int *algorithm_id,
94
101
                                   gcry_module_t *module);