mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-18 11:05:48 +08:00
Use provided macros and comment
This commit is contained in:
parent
b05d071c3a
commit
c5765e3827
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user