deprecate functions that are needed for exported EVP_MD_CTX.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23141 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
2008-04-28 Love H<>rnquist <20>strand <lha@it.su.se>
|
||||
|
||||
* evp.[ch]: deprecate functions that are needed for exported
|
||||
EVP_MD_CTX.
|
||||
|
||||
* evp.h: Internalize hc_EVP_MD_CTX.
|
||||
|
||||
* evp.c: Internalize hc_EVP_MD_CTX.
|
||||
|
@@ -37,6 +37,8 @@
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
#define HC_DEPRECATED
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
@@ -142,7 +144,7 @@ EVP_MD_CTX_create(void)
|
||||
* @ingroup hcrypto_evp
|
||||
*/
|
||||
|
||||
void
|
||||
void HC_DEPRECATED
|
||||
EVP_MD_CTX_init(EVP_MD_CTX *ctx)
|
||||
{
|
||||
memset(ctx, 0, sizeof(*ctx));
|
||||
@@ -173,7 +175,7 @@ EVP_MD_CTX_destroy(EVP_MD_CTX *ctx)
|
||||
* @ingroup hcrypto_evp
|
||||
*/
|
||||
|
||||
int
|
||||
int HC_DEPRECATED
|
||||
EVP_MD_CTX_cleanup(EVP_MD_CTX *ctx)
|
||||
{
|
||||
if (ctx->md && ctx->md->cleanup)
|
||||
|
@@ -155,6 +155,14 @@ struct hc_CIPHER_CTX {
|
||||
unsigned char final[EVP_MAX_BLOCK_LENGTH];
|
||||
};
|
||||
|
||||
#if !defined(__GNUC__) && !defined(__attribute__)
|
||||
#define __attribute__(x)
|
||||
#endif
|
||||
|
||||
#ifndef HC_DEPRECATED
|
||||
#define HC_DEPRECATED __attribute__((deprecated))
|
||||
#endif
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
@@ -199,9 +207,9 @@ size_t EVP_MD_CTX_block_size(EVP_MD_CTX *);
|
||||
|
||||
EVP_MD_CTX *
|
||||
EVP_MD_CTX_create(void);
|
||||
void EVP_MD_CTX_init(EVP_MD_CTX *);
|
||||
void HC_DEPRECATED EVP_MD_CTX_init(EVP_MD_CTX *);
|
||||
void EVP_MD_CTX_destroy(EVP_MD_CTX *);
|
||||
int EVP_MD_CTX_cleanup(EVP_MD_CTX *);
|
||||
int HC_DEPRECATED EVP_MD_CTX_cleanup(EVP_MD_CTX *);
|
||||
|
||||
int EVP_DigestInit_ex(EVP_MD_CTX *, const EVP_MD *, ENGINE *);
|
||||
int EVP_DigestUpdate(EVP_MD_CTX *,const void *, size_t);
|
||||
|
Reference in New Issue
Block a user