Use provided macros and comment

This commit is contained in:
Kurt Zeilenga 2000-06-03 17:24:21 +00:00
parent b05d071c3a
commit c5765e3827
3 changed files with 12 additions and 7 deletions

View File

@ -823,7 +823,7 @@ static struct berval *hash_sha1(
const struct berval *passwd )
{
lutil_SHA1_CTX SHA1context;
unsigned char SHA1digest[20];
unsigned char SHA1digest[LUTIL_SHA1_BYTES];
struct berval digest;
digest.bv_val = SHA1digest;
digest.bv_len = sizeof(SHA1digest);
@ -841,7 +841,7 @@ static struct berval *hash_smd5(
const struct berval *passwd )
{
lutil_MD5_CTX MD5context;
unsigned char MD5digest[16];
unsigned char MD5digest[LUTIL_MD5_BYTES];
unsigned char saltdata[4];
struct berval digest;
struct berval salt;
@ -870,7 +870,7 @@ static struct berval *hash_md5(
const struct berval *passwd )
{
lutil_MD5_CTX MD5context;
unsigned char MD5digest[16];
unsigned char MD5digest[LUTIL_MD5_BYTES];
struct berval digest;

View File

@ -3,7 +3,12 @@
* Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
*/
/* ntservice.c */
/*
* NT Service manager utilities for OpenLDAP services
* these should NOT be slapd specific, but are
*/
#include "portable.h"
#ifdef HAVE_NT_SERVICE_MANAGER

View File

@ -942,7 +942,7 @@ static struct berval *hash_sha1(
const struct berval *passwd )
{
lutil_SHA1_CTX SHA1context;
unsigned char SHA1digest[20];
unsigned char SHA1digest[LUTIL_SHA1_BYTES];
struct berval digest;
digest.bv_val = SHA1digest;
digest.bv_len = sizeof(SHA1digest);
@ -960,7 +960,7 @@ static struct berval *hash_smd5(
const struct berval *passwd )
{
lutil_MD5_CTX MD5context;
unsigned char MD5digest[16];
unsigned char MD5digest[LUTIL_MD5_BYTES];
unsigned char saltdata[4];
struct berval digest;
struct berval salt;
@ -989,7 +989,7 @@ static struct berval *hash_md5(
const struct berval *passwd )
{
lutil_MD5_CTX MD5context;
unsigned char MD5digest[16];
unsigned char MD5digest[LUTIL_MD5_BYTES];
struct berval digest;