[Fedora-directory-commits] ldapserver/ldap/servers/plugins/pwdstorage md5_pwd.c, 1.2, 1.3

Noriko Hosoi (nhosoi) fedora-directory-commits at redhat.com
Thu Oct 18 00:08:33 UTC 2007


Author: nhosoi

Update of /cvs/dirsec/ldapserver/ldap/servers/plugins/pwdstorage
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25950/ldap/servers/plugins/pwdstorage

Modified Files:
	md5_pwd.c 
Log Message:
Resolves: #188320
Summary: HP-UX: warnings reported by the HP-UX compiler



Index: md5_pwd.c
===================================================================
RCS file: /cvs/dirsec/ldapserver/ldap/servers/plugins/pwdstorage/md5_pwd.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- md5_pwd.c	10 Nov 2006 23:45:10 -0000	1.2
+++ md5_pwd.c	18 Oct 2007 00:08:30 -0000	1.3
@@ -76,14 +76,14 @@
 
    /* create the hash */
    PK11_DigestBegin(ctx);
-   PK11_DigestOp(ctx, userpwd, strlen(userpwd));
+   PK11_DigestOp(ctx, (const unsigned char *)userpwd, strlen(userpwd));
    PK11_DigestFinal(ctx, hash_out, &outLen, sizeof hash_out);
    PK11_DestroyContext(ctx, 1);
 
    /* convert the binary hash to base64 */
    binary_item.data = hash_out;
    binary_item.len = outLen;
-   bver = NSSBase64_EncodeItem(NULL, b2a_out, sizeof b2a_out, &binary_item);
+   bver = NSSBase64_EncodeItem(NULL, (char *)b2a_out, sizeof b2a_out, &binary_item);
    /* bver points to b2a_out upon success */
    if (bver) {
 	   rc = strcmp(bver,dbpwd);
@@ -114,14 +114,14 @@
 
    /* create the hash */
    PK11_DigestBegin(ctx);
-   PK11_DigestOp(ctx, pwd, strlen(pwd));
+   PK11_DigestOp(ctx, (const unsigned char *)pwd, strlen(pwd));
    PK11_DigestFinal(ctx, hash_out, &outLen, sizeof hash_out);
    PK11_DestroyContext(ctx, 1);
 
    /* convert the binary hash to base64 */
    binary_item.data = hash_out;
    binary_item.len = outLen;
-   bver = NSSBase64_EncodeItem(NULL, b2a_out, sizeof b2a_out, &binary_item);
+   bver = NSSBase64_EncodeItem(NULL, (char *)b2a_out, sizeof b2a_out, &binary_item);
    if (bver) {
 	   enc = slapi_ch_smprintf("%c%s%c%s", PWD_HASH_PREFIX_START, MD5_SCHEME_NAME,
 							   PWD_HASH_PREFIX_END, bver );




More information about the Fedora-directory-commits mailing list