summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2004-10-30 01:20:37 +0000
committerSimon Josefsson <simon@josefsson.org>2004-10-30 01:20:37 +0000
commit9ab8d02c3b59aecfae57e3aee14371cd71d4cdaa (patch)
treea2e2dbfeab4422ee235fee1e8cdc45ce666c63fb
parentd7831da232cc6340d2f55b29f6ee315e448af7b4 (diff)
downloadgnutls-9ab8d02c3b59aecfae57e3aee14371cd71d4cdaa.tar.gz
Declare MD_CTX.
Add MD5_DIGEST_LENGTH.
-rw-r--r--includes/gnutls/openssl.h9
1 files changed, 7 insertions, 2 deletions
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 <andrew@mcdonald.org.uk>
*
* 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);