You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Dirk-Willem van Gulik <di...@covalent.net> on 2001/10/12 01:51:28 UTC
AP_BYTE and ap_sha1.h/c
Anyone object to me move the
typedef unsigned char AP_BYTE;
which is used in ap_sha1.c to define the digest
returned with:
ap_SHA1Final(digest, &context);
out into ap_sha1.h; and update ap-SHA1Final() so that an external
app can call the trilogy:
AP_BYTE digest[SHA_DIGESTSIZE];
AP_SHA1_CTX context;
ap_SHA1Init(&context);
ap_SHA1Update(&context, clear, strlen(clear));
ap_SHA1Final(digest, &context);
to make it's own SHA1 binary digests.
.....OR....
would it be better to wack AP_BYTE in ap_sha1.c and simply use unsigned
char throughout (as that is how Final is defined externally).
Any advice..
Dw
Re: AP_BYTE and ap_sha1.h/c
Posted by Martin Kraemer <Ma...@Fujitsu-Siemens.com>.
On Thu, Oct 11, 2001 at 04:51:28PM -0700, Dirk-Willem van Gulik wrote:
>
> Anyone object to me move the
>
> typedef unsigned char AP_BYTE;
+0
>
> .....OR....
>
> would it be better to wack AP_BYTE in ap_sha1.c and simply use unsigned
> char throughout (as that is how Final is defined externally).
+1
Martin
--
<Ma...@Fujitsu-Siemens.com> | Fujitsu Siemens
Fon: +49-89-636-46021, FAX: +49-89-636-47655 | 81730 Munich, Germany