diff options
author | George Hazan <ghazan@miranda.im> | 2017-11-10 18:36:08 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-11-10 18:36:08 +0300 |
commit | d34a80f41a4bdae108d5f77e3397bc893fbacf6e (patch) | |
tree | a7e3500c16d2867c6ac657952fb11286606f8913 /include/openssl/mdc2.h | |
parent | 75b344c4c8b4148602279b51bc2cc5d45b03c324 (diff) |
update to openssl headers from version 1.0.2m
Diffstat (limited to 'include/openssl/mdc2.h')
-rw-r--r-- | include/openssl/mdc2.h | 36 |
1 files changed, 16 insertions, 20 deletions
diff --git a/include/openssl/mdc2.h b/include/openssl/mdc2.h index f1dec4f5ca..a9d61d9caa 100644 --- a/include/openssl/mdc2.h +++ b/include/openssl/mdc2.h @@ -57,42 +57,38 @@ */
#ifndef HEADER_MDC2_H
-#define HEADER_MDC2_H
+# define HEADER_MDC2_H
-#include <openssl/des.h>
+# include <openssl/des.h>
#ifdef __cplusplus
extern "C" {
#endif
-#ifdef OPENSSL_NO_MDC2
-#error MDC2 is disabled.
-#endif
-
-#define MDC2_BLOCK 8
-#define MDC2_DIGEST_LENGTH 16
+# ifdef OPENSSL_NO_MDC2
+# error MDC2 is disabled.
+# endif
-typedef struct mdc2_ctx_st
- {
- unsigned int num;
- unsigned char data[MDC2_BLOCK];
- DES_cblock h,hh;
- int pad_type; /* either 1 or 2, default 1 */
- } MDC2_CTX;
+# define MDC2_BLOCK 8
+# define MDC2_DIGEST_LENGTH 16
+typedef struct mdc2_ctx_st {
+ unsigned int num;
+ unsigned char data[MDC2_BLOCK];
+ DES_cblock h, hh;
+ int pad_type; /* either 1 or 2, default 1 */
+} MDC2_CTX;
-#ifdef OPENSSL_FIPS
+# ifdef OPENSSL_FIPS
int private_MDC2_Init(MDC2_CTX *c);
-#endif
+# endif
int MDC2_Init(MDC2_CTX *c);
int MDC2_Update(MDC2_CTX *c, const unsigned char *data, size_t len);
int MDC2_Final(unsigned char *md, MDC2_CTX *c);
-unsigned char *MDC2(const unsigned char *d, size_t n,
- unsigned char *md);
+unsigned char *MDC2(const unsigned char *d, size_t n, unsigned char *md);
#ifdef __cplusplus
}
#endif
#endif
-
|