diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-09 09:46:07 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-09 09:46:07 +0100 |
commit | 5ac03256db0fe4ca7e3ad1117d096c3a76368b76 (patch) | |
tree | c767808892cc7f013b87174ad3b31c23508b5fa5 /release/src/router/cyassl/include/openssl/sha.h | |
parent | d89b5dc1509c66ccbed1dbc7ed0e09264ea3179e (diff) | |
download | tomato-5ac03256db0fe4ca7e3ad1117d096c3a76368b76.tar.gz tomato-5ac03256db0fe4ca7e3ad1117d096c3a76368b76.tar.bz2 |
backported CyaSSL/OpenSSL support for internal webserver instead of MatrixSSL
Diffstat (limited to 'release/src/router/cyassl/include/openssl/sha.h')
-rw-r--r-- | release/src/router/cyassl/include/openssl/sha.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/release/src/router/cyassl/include/openssl/sha.h b/release/src/router/cyassl/include/openssl/sha.h new file mode 100644 index 00000000..501274f4 --- /dev/null +++ b/release/src/router/cyassl/include/openssl/sha.h @@ -0,0 +1,32 @@ +/* sha.h for openssl */ + + +#ifndef CYASSL_SHA_H_ +#define CYASSL_SHA_H_ + +#ifdef YASSL_PREFIX +#include "prefix_sha.h" +#endif + +#ifdef __cplusplus + extern "C" { +#endif + + +typedef struct SHA_CTX { + int holder[24]; /* big enough to hold ctaocrypt sha, but check on init */ +} SHA_CTX; + +void SHA_Init(SHA_CTX*); +void SHA_Update(SHA_CTX*, const void*, unsigned long); +void SHA_Final(unsigned char*, SHA_CTX*); + + + +#ifdef __cplusplus + } /* extern "C" */ +#endif + + +#endif /* CYASSL_SHA_H_ */ + |