From 526bc182a7e662feadcf1e5e80f48d398a81279c Mon Sep 17 00:00:00 2001 From: erickson Date: Sun, 19 Jun 2005 16:20:35 +0000 Subject: [PATCH] moved to the utils dir git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@352 9efc2488-bf62-4759-914b-345cdb29e865 --- include/md5.h | 35 ----------------------------------- include/sha.h | 41 ----------------------------------------- include/utils.h | 33 --------------------------------- 3 files changed, 109 deletions(-) delete mode 100644 include/md5.h delete mode 100644 include/sha.h delete mode 100644 include/utils.h diff --git a/include/md5.h b/include/md5.h deleted file mode 100644 index 53dd2b1..0000000 --- a/include/md5.h +++ /dev/null @@ -1,35 +0,0 @@ -/* --- The MD5 routines --- */ - -/* MD5 routines, after Ron Rivest */ -/* Written by David Madore , with code taken in - * part from Colin Plumb. */ -/* Public domain (1999/11/24) */ - -/* Note: these routines do not depend on endianness. */ - -/* === The header === */ - -/* Put this in md5.h if you don't like having everything in one big - * file. */ - -#ifndef _DMADORE_MD5_H -#define _DMADORE_MD5_H - -struct md5_ctx { - /* The four chaining variables */ - unsigned long buf[4]; - /* Count number of message bits */ - unsigned long bits[2]; - /* Data being fed in */ - unsigned long in[16]; - /* Our position within the 512 bits (always between 0 and 63) */ - int b; -}; - -void MD5_transform (unsigned long buf[4], const unsigned long in[16]); -void MD5_start (struct md5_ctx *context); -void MD5_feed (struct md5_ctx *context, unsigned char inb); -void MD5_stop (struct md5_ctx *context, unsigned char digest[16]); - -#endif /* not defined _DMADORE_MD5_H */ - diff --git a/include/sha.h b/include/sha.h deleted file mode 100644 index 6c3d2d4..0000000 --- a/include/sha.h +++ /dev/null @@ -1,41 +0,0 @@ -// sha.h -// Jabber client library -// -// Original Code Copyright (C) 1999-2001 Dave Smith (dave@jabber.org) -// -// This library is free software; you can redistribute it and/or -// modify it under the terms of the GNU Lesser General Public -// License as published by the Free Software Foundation; either -// version 2.1 of the License, or (at your option) any later version. -// -// This library is distributed in the hope that it will be useful, -// but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU -// Lesser General Public License for more details. -// -// You should have received a copy of the GNU Lesser General Public -// License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA -// -// Contributor(s): Julian Missig -// -// This Original Code has been modified by IBM Corporation. Modifications -// made by IBM described herein are Copyright (c) International Business -// Machines Corporation, 2002. -// -// Date Modified by Description of modification -// 01/20/2002 IBM Corp. Updated to libjudo 1.1.1 -// 2002-03-05 IBM Corp. Updated to libjudo 1.1.5 -// 2002-07-09 IBM Corp. Added Roster::getSession() -// -// ===================================================================================== - - -//#ifdef WIN32 - char* shahash(const char* str); -//#else -//extern "C" { -// char* shahash(const char* str); -//} -//#endif - diff --git a/include/utils.h b/include/utils.h deleted file mode 100644 index 1fac59d..0000000 --- a/include/utils.h +++ /dev/null @@ -1,33 +0,0 @@ -#ifndef UTILS_H -#define UTILS_H - -#include - -#define BUFFER_MAX_SIZE 10485760 - -void* safe_malloc(int size); - -// --------------------------------------------------------------------------------- -// Generic growing buffer. Add data all you want -// --------------------------------------------------------------------------------- -struct growing_buffer_struct { - char *buf; - int n_used; - int size; -}; -typedef struct growing_buffer_struct growing_buffer; - -growing_buffer* buffer_init( int initial_num_bytes); -int buffer_addchar(growing_buffer* gb, char c); -int buffer_add(growing_buffer* gb, char* c); -int buffer_fadd(growing_buffer* gb, const char* format, ... ); -int buffer_reset( growing_buffer* gb); -char* buffer_data( growing_buffer* gb); -int buffer_free( growing_buffer* gb ); -int buffer_add_char(growing_buffer* gb, char c); - - -char* uescape( const char* string, int size, int full_escape ); -double get_timestamp_millis(); - -#endif -- 2.11.0