]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Declare MD_CTX.
authorSimon Josefsson <simon@josefsson.org>
Sat, 30 Oct 2004 01:20:37 +0000 (01:20 +0000)
committerSimon Josefsson <simon@josefsson.org>
Sat, 30 Oct 2004 01:20:37 +0000 (01:20 +0000)
Add MD5_DIGEST_LENGTH.

includes/gnutls/openssl.h

index 31aeebdbaa734e9b10f931f3cc7fef91894fe0a8..95180204f1c46af94f17046b9a9855abdee0a17d 100644 (file)
@@ -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);