projects
/
oweals
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure strdup() is properly declared.
[oweals/openssl.git]
/
crypto
/
md32_common.h
diff --git
a/crypto/md32_common.h
b/crypto/md32_common.h
index 1a404a458d1c8d3f973973f83ad0035ab050d9f9..c169c9fe5de77c69f8516a1f826c7676ec53c4f4 100644
(file)
--- a/
crypto/md32_common.h
+++ b/
crypto/md32_common.h
@@
-179,7
+179,7
@@
*/
#undef ROTATE
#ifndef PEDANTIC
*/
#undef ROTATE
#ifndef PEDANTIC
-# if
defined(_MSC_VER)
+# if
0 /* defined(_MSC_VER) */
# define ROTATE(a,n) _lrotl(a,n)
# elif defined(__MWERKS__)
# if defined(__POWERPC__)
# define ROTATE(a,n) _lrotl(a,n)
# elif defined(__MWERKS__)
# if defined(__POWERPC__)
@@
-190,7
+190,7
@@
# else
# define ROTATE(a,n) __rol(a,n)
# endif
# else
# define ROTATE(a,n) __rol(a,n)
# endif
-# elif defined(__GNUC__) && __GNUC__>=2 && !defined(
NO_ASM) && !defined(
NO_INLINE_ASM)
+# elif defined(__GNUC__) && __GNUC__>=2 && !defined(
OPENSSL_NO_ASM) && !defined(OPENSSL_
NO_INLINE_ASM)
/*
* Some GNU C inline assembler templates. Note that these are
* rotates by *constant* number of bits! But that's exactly
/*
* Some GNU C inline assembler templates. Note that these are
* rotates by *constant* number of bits! But that's exactly
@@
-222,7
+222,7
@@
* Engage compiler specific "fetch in reverse byte order"
* intrinsic function if available.
*/
* Engage compiler specific "fetch in reverse byte order"
* intrinsic function if available.
*/
-# if defined(__GNUC__) && __GNUC__>=2 && !defined(
NO_ASM) && !defined(
NO_INLINE_ASM)
+# if defined(__GNUC__) && __GNUC__>=2 && !defined(
OPENSSL_NO_ASM) && !defined(OPENSSL_
NO_INLINE_ASM)
/* some GNU C inline assembler templates by <appro@fy.chalmers.se> */
# if defined(__i386) && !defined(I386_ONLY)
# define BE_FETCH32(a) ({ register unsigned int l=(a);\
/* some GNU C inline assembler templates by <appro@fy.chalmers.se> */
# if defined(__i386) && !defined(I386_ONLY)
# define BE_FETCH32(a) ({ register unsigned int l=(a);\
@@
-240,7
+240,7
@@
l; \
})
l; \
})
-# elif defined(__sparc) && defined(ULTRASPARC)
+# elif defined(__sparc) && defined(
OPENSSL_SYS_
ULTRASPARC)
# define LE_FETCH32(a) ({ register unsigned int l; \
asm ( \
"lda [%1]#ASI_PRIMARY_LITTLE,%0"\
# define LE_FETCH32(a) ({ register unsigned int l; \
asm ( \
"lda [%1]#ASI_PRIMARY_LITTLE,%0"\
@@
-410,14
+410,14
@@
* Time for some action:-)
*/
* Time for some action:-)
*/
-
void
HASH_UPDATE (HASH_CTX *c, const void *data_, unsigned long len)
+
int
HASH_UPDATE (HASH_CTX *c, const void *data_, unsigned long len)
{
const unsigned char *data=data_;
register HASH_LONG * p;
register unsigned long l;
int sw,sc,ew,ec;
{
const unsigned char *data=data_;
register HASH_LONG * p;
register unsigned long l;
int sw,sc,ew,ec;
- if (len==0) return;
+ if (len==0) return
1
;
l=(c->Nl+(len<<3))&0xffffffffL;
/* 95-05-24 eay Fixed a bug with the overflow handling, thanks to
l=(c->Nl+(len<<3))&0xffffffffL;
/* 95-05-24 eay Fixed a bug with the overflow handling, thanks to
@@
-466,7
+466,7
@@
void HASH_UPDATE (HASH_CTX *c, const void *data_, unsigned long len)
HOST_c2l_p(data,l,ec); p[sw]=l;
}
}
HOST_c2l_p(data,l,ec); p[sw]=l;
}
}
- return;
+ return
1
;
}
}
}
}
@@
-520,6
+520,7
@@
void HASH_UPDATE (HASH_CTX *c, const void *data_, unsigned long len)
HOST_c2l_p(data,l,ec);
*p=l;
}
HOST_c2l_p(data,l,ec);
*p=l;
}
+ return 1;
}
}
@@
-543,7
+544,7
@@
void HASH_TRANSFORM (HASH_CTX *c, const unsigned char *data)
}
}
-
void
HASH_FINAL (unsigned char *md, HASH_CTX *c)
+
int
HASH_FINAL (unsigned char *md, HASH_CTX *c)
{
register HASH_LONG *p;
register unsigned long l;
{
register HASH_LONG *p;
register unsigned long l;
@@
-604,4
+605,5
@@
void HASH_FINAL (unsigned char *md, HASH_CTX *c)
* but I'm not worried :-)
memset((void *)c,0,sizeof(HASH_CTX));
*/
* but I'm not worried :-)
memset((void *)c,0,sizeof(HASH_CTX));
*/
+ return 1;
}
}