From c7b0ff5c9f8dd94f0afe3427d9747e240a4eac5e Mon Sep 17 00:00:00 2001 From: "tomw%netscape.com" Date: Mon, 5 Oct 1998 22:44:57 +0000 Subject: [PATCH] Pull changes forward from Nova. Remove unused code. --- lib/libmisc/miscinit.c | 72 ------------------------------------------ 1 file changed, 72 deletions(-) diff --git a/lib/libmisc/miscinit.c b/lib/libmisc/miscinit.c index 2f198e7b71a5..b499e3d3cfc0 100644 --- a/lib/libmisc/miscinit.c +++ b/lib/libmisc/miscinit.c @@ -33,78 +33,6 @@ extern int XP_ERRNO_EWOULDBLOCK; -static void * -null_hash_new_context(void) -{ - return NULL; -} - -static void * -null_hash_clone_context(void *v) -{ - XP_ASSERT(v == NULL); - return NULL; -} - -static void -null_hash_begin(void *v) -{ -} - -static void -null_hash_update(void *v, unsigned char *input, unsigned int length) -{ -} - -static void -null_hash_end(void *v, unsigned char *output, unsigned int *outLen, - unsigned int maxOut) -{ - *outLen = 0; -} - -static void -null_hash_destroy_context(void *v, DSBool b) -{ - XP_ASSERT(v == NULL); -} - -SECHashObject SECHashObjects[] = { - { 0, - (void * (*)(void)) null_hash_new_context, - (void * (*)(void *)) null_hash_clone_context, - (void (*)(void *, DSBool)) null_hash_destroy_context, - (void (*)(void *)) null_hash_begin, - (void (*)(void *, unsigned char *, unsigned int)) null_hash_update, - (void (*)(void *, unsigned char *, unsigned int *, - unsigned int)) null_hash_end - }, - { MD2_LENGTH, - (void * (*)(void)) MD2_NewContext, - (void * (*)(void *)) MD2_CloneContext, - (void (*)(void *, DSBool)) MD2_DestroyContext, - (void (*)(void *)) MD2_Begin, - (void (*)(void *, unsigned char *, unsigned int)) MD2_Update, - (void (*)(void *, unsigned char *, unsigned int *, unsigned int)) MD2_End - }, - { MD5_LENGTH, - (void * (*)(void)) MD5_NewContext, - (void * (*)(void *)) MD5_CloneContext, - (void (*)(void *, DSBool)) MD5_DestroyContext, - (void (*)(void *)) MD5_Begin, - (void (*)(void *, unsigned char *, unsigned int)) MD5_Update, - (void (*)(void *, unsigned char *, unsigned int *, unsigned int)) MD5_End - }, - { SHA1_LENGTH, - (void * (*)(void)) SHA1_NewContext, - (void * (*)(void *)) SHA1_CloneContext, - (void (*)(void *, DSBool)) SHA1_DestroyContext, - (void (*)(void *)) SHA1_Begin, - (void (*)(void *, unsigned char *, unsigned int)) SHA1_Update, - (void (*)(void *, unsigned char *, unsigned int *, unsigned int)) SHA1_End - }, -}; - static int sec_inited = 0; void SEC_Init(void) {