summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-12-05 01:12:28 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>2000-12-05 01:12:28 +0000
commitb63830faa1cbb7c422e0eb7fe8416c51725ebf50 (patch)
tree300aa1327d8c372084d30c91c69a1eb1d546617a /crypto
parent4c2d777a149b47ef2fdd52b334d4893b10aa4514 (diff)
downloadlibapr-util-b63830faa1cbb7c422e0eb7fe8416c51725ebf50.tar.gz
Get SHA1 and Base64 building as a part of apr-utils
git-svn-id: http://svn.apache.org/repos/asf/apr/apr-util/trunk@57939 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'crypto')
-rw-r--r--crypto/ap_sha1.c13
-rw-r--r--crypto/apr_sha1.c13
2 files changed, 12 insertions, 14 deletions
diff --git a/crypto/ap_sha1.c b/crypto/ap_sha1.c
index 08d8054e..847a3c10 100644
--- a/crypto/ap_sha1.c
+++ b/crypto/ap_sha1.c
@@ -82,7 +82,6 @@
* This code is hereby placed in the public domain
*/
-#include "ap_config.h"
#include "ap_sha1.h"
#include "ap_base64.h"
#include "apr_strings.h"
@@ -122,7 +121,7 @@
#ifdef CHARSET_EBCDIC
static apr_xlate_t *ebcdic2ascii_xlate;
-AP_DECLARE(apr_status_t) ap_SHA1InitEBCDIC(apr_xlate_t *x)
+APR_DECLARE(apr_status_t) ap_SHA1InitEBCDIC(apr_xlate_t *x)
{
apr_status_t rv;
int onoff;
@@ -243,7 +242,7 @@ static void maybe_byte_reverse(apr_uint32_t *buffer, int count)
/* initialize the SHA digest */
-AP_DECLARE(void) ap_SHA1Init(AP_SHA1_CTX *sha_info)
+APR_DECLARE(void) ap_SHA1Init(AP_SHA1_CTX *sha_info)
{
sha_info->digest[0] = 0x67452301L;
sha_info->digest[1] = 0xefcdab89L;
@@ -257,7 +256,7 @@ AP_DECLARE(void) ap_SHA1Init(AP_SHA1_CTX *sha_info)
/* update the SHA digest */
-AP_DECLARE(void) ap_SHA1Update_binary(AP_SHA1_CTX *sha_info,
+APR_DECLARE(void) ap_SHA1Update_binary(AP_SHA1_CTX *sha_info,
const unsigned char *buffer,
unsigned int count)
{
@@ -296,7 +295,7 @@ AP_DECLARE(void) ap_SHA1Update_binary(AP_SHA1_CTX *sha_info,
sha_info->local = count;
}
-AP_DECLARE(void) ap_SHA1Update(AP_SHA1_CTX *sha_info, const char *buf,
+APR_DECLARE(void) ap_SHA1Update(AP_SHA1_CTX *sha_info, const char *buf,
unsigned int count)
{
#ifdef CHARSET_EBCDIC
@@ -350,7 +349,7 @@ AP_DECLARE(void) ap_SHA1Update(AP_SHA1_CTX *sha_info, const char *buf,
/* finish computing the SHA digest */
-AP_DECLARE(void) ap_SHA1Final(unsigned char digest[SHA_DIGESTSIZE],
+APR_DECLARE(void) ap_SHA1Final(unsigned char digest[SHA_DIGESTSIZE],
AP_SHA1_CTX *sha_info)
{
int count, i, j;
@@ -385,7 +384,7 @@ AP_DECLARE(void) ap_SHA1Final(unsigned char digest[SHA_DIGESTSIZE],
}
-AP_DECLARE(void) ap_sha1_base64(const char *clear, int len, char *out)
+APR_DECLARE(void) ap_sha1_base64(const char *clear, int len, char *out)
{
int l;
AP_SHA1_CTX context;
diff --git a/crypto/apr_sha1.c b/crypto/apr_sha1.c
index 08d8054e..847a3c10 100644
--- a/crypto/apr_sha1.c
+++ b/crypto/apr_sha1.c
@@ -82,7 +82,6 @@
* This code is hereby placed in the public domain
*/
-#include "ap_config.h"
#include "ap_sha1.h"
#include "ap_base64.h"
#include "apr_strings.h"
@@ -122,7 +121,7 @@
#ifdef CHARSET_EBCDIC
static apr_xlate_t *ebcdic2ascii_xlate;
-AP_DECLARE(apr_status_t) ap_SHA1InitEBCDIC(apr_xlate_t *x)
+APR_DECLARE(apr_status_t) ap_SHA1InitEBCDIC(apr_xlate_t *x)
{
apr_status_t rv;
int onoff;
@@ -243,7 +242,7 @@ static void maybe_byte_reverse(apr_uint32_t *buffer, int count)
/* initialize the SHA digest */
-AP_DECLARE(void) ap_SHA1Init(AP_SHA1_CTX *sha_info)
+APR_DECLARE(void) ap_SHA1Init(AP_SHA1_CTX *sha_info)
{
sha_info->digest[0] = 0x67452301L;
sha_info->digest[1] = 0xefcdab89L;
@@ -257,7 +256,7 @@ AP_DECLARE(void) ap_SHA1Init(AP_SHA1_CTX *sha_info)
/* update the SHA digest */
-AP_DECLARE(void) ap_SHA1Update_binary(AP_SHA1_CTX *sha_info,
+APR_DECLARE(void) ap_SHA1Update_binary(AP_SHA1_CTX *sha_info,
const unsigned char *buffer,
unsigned int count)
{
@@ -296,7 +295,7 @@ AP_DECLARE(void) ap_SHA1Update_binary(AP_SHA1_CTX *sha_info,
sha_info->local = count;
}
-AP_DECLARE(void) ap_SHA1Update(AP_SHA1_CTX *sha_info, const char *buf,
+APR_DECLARE(void) ap_SHA1Update(AP_SHA1_CTX *sha_info, const char *buf,
unsigned int count)
{
#ifdef CHARSET_EBCDIC
@@ -350,7 +349,7 @@ AP_DECLARE(void) ap_SHA1Update(AP_SHA1_CTX *sha_info, const char *buf,
/* finish computing the SHA digest */
-AP_DECLARE(void) ap_SHA1Final(unsigned char digest[SHA_DIGESTSIZE],
+APR_DECLARE(void) ap_SHA1Final(unsigned char digest[SHA_DIGESTSIZE],
AP_SHA1_CTX *sha_info)
{
int count, i, j;
@@ -385,7 +384,7 @@ AP_DECLARE(void) ap_SHA1Final(unsigned char digest[SHA_DIGESTSIZE],
}
-AP_DECLARE(void) ap_sha1_base64(const char *clear, int len, char *out)
+APR_DECLARE(void) ap_sha1_base64(const char *clear, int len, char *out)
{
int l;
AP_SHA1_CTX context;