"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/sha1.c" between
libksba-1.4.0.tar.bz2 and libksba-1.5.0.tar.bz2

About: KSBA is a library to make the tasks of working with X.509 certificates, CMS data and related objects more easy.

sha1.c  (libksba-1.4.0.tar.bz2):sha1.c  (libksba-1.5.0.tar.bz2)
skipping to change at line 32 skipping to change at line 32
/* This is a simplified SHA01 versions taken from the libgrypt one. /* This is a simplified SHA01 versions taken from the libgrypt one.
We need this for some tests (e.g. OCSP). We need this for some tests (e.g. OCSP).
*/ */
#include <config.h> #include <config.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
#include <sys/types.h> #include <sys/types.h>
#ifndef HAVE_U32_TYPEDEF #ifndef HAVE_TYPE_U32
#undef u32 /* maybe there is a macro with this name */ #undef u32 /* maybe there is a macro with this name */
#if SIZEOF_UNSIGNED_INT == 4 #if SIZEOF_UNSIGNED_INT == 4
typedef unsigned int u32; typedef unsigned int u32;
#elif SIZEOF_UNSIGNED_LONG == 4 #elif SIZEOF_UNSIGNED_LONG == 4
typedef unsigned long u32; typedef unsigned long u32;
#else #else
#error no typedef for u32 #error no typedef for u32
#endif #endif
#define HAVE_U32_TYPEDEF #define HAVE_TYPE_U32
#endif #endif
typedef struct typedef struct
{ {
u32 h0,h1,h2,h3,h4; u32 h0,h1,h2,h3,h4;
u32 nblocks; u32 nblocks;
unsigned char buf[64]; unsigned char buf[64];
int count; int count;
} sha1_context_t; } sha1_context_t;
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)