summaryrefslogtreecommitdiff
path: root/lib/freebl/loader.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/freebl/loader.h')
-rw-r--r--lib/freebl/loader.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/freebl/loader.h b/lib/freebl/loader.h
index 9f533efd3..ef195857c 100644
--- a/lib/freebl/loader.h
+++ b/lib/freebl/loader.h
@@ -10,6 +10,7 @@
#include "blapi.h"
+
#define FREEBL_VERSION 0x0312
struct FREEBLVectorStr {
@@ -740,8 +741,43 @@ struct FREEBLVectorStr {
typedef struct FREEBLVectorStr FREEBLVector;
+#ifdef FREEBL_LOWHASH
+#include "nsslowhash.h"
+
+#define NSSLOW_VERSION 0x0300
+
+struct NSSLOWVectorStr {
+ unsigned short length; /* of this struct in bytes */
+ unsigned short version; /* of this struct. */
+ const FREEBLVector *(*p_FREEBL_GetVector)(void);
+ NSSLOWInitContext *(*p_NSSLOW_Init)(void);
+ void (*p_NSSLOW_Shutdown)(NSSLOWInitContext *context);
+ void (*p_NSSLOW_Reset)(NSSLOWInitContext *context);
+ NSSLOWHASHContext *(*p_NSSLOWHASH_NewContext)(
+ NSSLOWInitContext *initContext,
+ HASH_HashType hashType);
+ void (*p_NSSLOWHASH_Begin)(NSSLOWHASHContext *context);
+ void (*p_NSSLOWHASH_Update)(NSSLOWHASHContext *context,
+ const unsigned char *buf,
+ unsigned int len);
+ void (*p_NSSLOWHASH_End)(NSSLOWHASHContext *context,
+ unsigned char *buf,
+ unsigned int *ret, unsigned int len);
+ void (*p_NSSLOWHASH_Destroy)(NSSLOWHASHContext *context);
+ unsigned int (*p_NSSLOWHASH_Length)(NSSLOWHASHContext *context);
+};
+
+typedef struct NSSLOWVectorStr NSSLOWVector;
+#endif
+
SEC_BEGIN_PROTOS
+#ifdef FREEBL_LOWHASH
+typedef const NSSLOWVector * NSSLOWGetVectorFn(void);
+
+extern NSSLOWGetVectorFn NSSLOW_GetVector;
+#endif
+
typedef const FREEBLVector * FREEBLGetVectorFn(void);
extern FREEBLGetVectorFn FREEBL_GetVector;