~ubuntu-branches/ubuntu/jaunty/heimdal/jaunty

« back to all changes in this revision

Viewing changes to lib/hcrypto/evp.h

  • Committer: Bazaar Package Importer
  • Author(s): Nick Ellery
  • Date: 2008-11-17 22:25:58 UTC
  • mfrom: (1.1.5 upstream) (2.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20081117222558-jd1aj1jth6ycdb0x
Tags: 1.2.dfsg.1-2.1ubuntu1
* Merge from debian unstable, remaining changes (LP: #299345):
  - Change libdb4.2-dev to libdb4.6-dev in build-deps
  - Add netbase to heimdal-kdc depends.
  - Set CPPFLAGS=-DLDAP_DEPRECATED to fix build with OpenLDAP 2.4 on
    64-bit architectures.
* Remove dependency on update-inetd to heimdal-servers and heimdal-kdc,
  as packages should rely on the inet-superserver to provide the
  update-inetd command.
* Drop the addition of -1 to the version of comerr-dev in build depends.

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
 * SUCH DAMAGE.
32
32
 */
33
33
 
34
 
/* $Id: evp.h 21687 2007-07-24 16:29:05Z lha $ */
 
34
/* $Id: evp.h 23141 2008-04-29 05:47:04Z lha $ */
35
35
 
36
36
#ifndef HEIM_EVP_H
37
37
#define HEIM_EVP_H 1
155
155
    unsigned char final[EVP_MAX_BLOCK_LENGTH];
156
156
};
157
157
 
158
 
struct hc_EVP_MD_CTX {
159
 
    const EVP_MD *md;
160
 
    ENGINE *engine;
161
 
    void *ptr;
162
 
};
 
158
#if !defined(__GNUC__) && !defined(__attribute__)
 
159
#define __attribute__(x)
 
160
#endif
 
161
 
 
162
#ifndef HC_DEPRECATED
 
163
#define HC_DEPRECATED __attribute__((deprecated))
 
164
#endif
 
165
 
 
166
#ifdef  __cplusplus
 
167
extern "C" {
 
168
#endif
163
169
 
164
170
/*
165
171
 * Avaible crypto algs
201
207
 
202
208
EVP_MD_CTX *
203
209
        EVP_MD_CTX_create(void);
204
 
void    EVP_MD_CTX_init(EVP_MD_CTX *);
 
210
void    HC_DEPRECATED EVP_MD_CTX_init(EVP_MD_CTX *);
205
211
void    EVP_MD_CTX_destroy(EVP_MD_CTX *);
206
 
int     EVP_MD_CTX_cleanup(EVP_MD_CTX *);
 
212
int     HC_DEPRECATED EVP_MD_CTX_cleanup(EVP_MD_CTX *);
207
213
 
208
214
int     EVP_DigestInit_ex(EVP_MD_CTX *, const EVP_MD *, ENGINE *);
209
215
int     EVP_DigestUpdate(EVP_MD_CTX *,const void *, size_t);
258
264
void    OpenSSL_add_all_algorithms_conf(void);
259
265
void    OpenSSL_add_all_algorithms_noconf(void);
260
266
 
 
267
#ifdef  __cplusplus
 
268
}
 
269
#endif
 
270
 
261
271
#endif /* HEIM_EVP_H */