From: Simon Josefsson Date: Sat, 30 Oct 2004 01:20:37 +0000 (+0000) Subject: Declare MD_CTX. X-Git-Tag: gnutls_1_1_22~32 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9ab8d02c3b59aecfae57e3aee14371cd71d4cdaa;p=thirdparty%2Fgnutls.git Declare MD_CTX. Add MD5_DIGEST_LENGTH. --- diff --git a/includes/gnutls/openssl.h b/includes/gnutls/openssl.h index 31aeebdbaa..95180204f1 100644 --- a/includes/gnutls/openssl.h +++ b/includes/gnutls/openssl.h @@ -1,4 +1,5 @@ /* + * Copyright (C) 2004 Free Software Foundation * Copyright (c) 2002 Andrew McDonald * * GNUTLS-EXTRA is free software; you can redistribute it and/or modify it @@ -161,8 +162,10 @@ struct _SSL #define rbio gnutls_state -struct MD_CTX; -typedef struct MD_CTX MD_CTX; +typedef struct +{ + void *handle; +} MD_CTX; struct RSA; typedef struct RSA RSA; @@ -303,6 +306,8 @@ int RAND_egd_bytes(const char *path, int bytes); /* message digest functions */ +#define MD5_DIGEST_LENGTH 16 + void MD5_Init(MD5_CTX *ctx); void MD5_Update(MD5_CTX *ctx, const void *buf, int len); void MD5_Final(unsigned char *md, MD5_CTX *ctx);