X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=libraries%2Fliblutil%2Fsha1.c;h=d217965ec3a8823bd363016efe42405fd65868ea;hb=58d4afec44520e7419dc5d4178ba6b6a239d2a12;hp=a5c026384e6c7271879308066bb9f46e2dcc7f7d;hpb=af8769b06d3bbc645c63c7991133f7260fb18209;p=openldap
diff --git a/libraries/liblutil/sha1.c b/libraries/liblutil/sha1.c
index a5c026384e..d217965ec3 100644
--- a/libraries/liblutil/sha1.c
+++ b/libraries/liblutil/sha1.c
@@ -1,11 +1,24 @@
/* $OpenLDAP$ */
-/*
- * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
- * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
+/* This work is part of OpenLDAP Software .
+ *
+ * Copyright 1998-2007 The OpenLDAP Foundation.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted only as authorized by the OpenLDAP
+ * Public License.
+ *
+ * A copy of this license is available in the file LICENSE in the
+ * top-level directory of the distribution or, alternatively, at
+ * .
+ */
+/* This work was derived from code developed by Steve Reid and
+ * adapted for use in OpenLDAP by Kurt D. Zeilenga.
*/
+
+
/* Acquired from:
* $OpenBSD: sha1.c,v 1.9 1997/07/23 21:12:32 kstailey Exp $ */
-
/*
* SHA-1 in C
* By Steve Reid
@@ -19,7 +32,6 @@
* A million repetitions of "a"
* 34AA973C D4C4DAA4 F61EEB2B DBAD2731 6534016F
*/
-
/*
* This code assumes uint32 is 32 bits and char is 8 bits
*/
@@ -211,9 +223,6 @@ static char rcsid[] = "$OpenBSD: sha1hl.c,v 1.1 1997/07/12 20:06:03 millert Exp
#ifdef HAVE_SYS_FILE_H
#include
#endif
-#ifdef HAVE_SYS_UIO_H
-#include
-#endif
#ifdef HAVE_IO_H
#include