httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dirk-Willem van Gulik <di...@covalent.net>
Subject AP_BYTE and ap_sha1.h/c
Date Thu, 11 Oct 2001 23:51:28 GMT

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


Mime
View raw message