--- libraries/liblutil/hash.c 2000/10/17 22:29:21 1.2 +++ libraries/liblutil/hash.c 2011/01/04 23:43:09 1.13 @@ -1,4 +1,19 @@ -/* $OpenLDAP: pkg/ldap/libraries/liblutil/hash.c,v 1.1 2000/09/22 20:19:46 kurt Exp $ */ +/* $OpenLDAP: pkg/ldap/libraries/liblutil/hash.c,v 1.12 2010/04/13 20:18:00 kurt Exp $ */ +/* This work is part of OpenLDAP Software . + * + * Copyright 2000-2011 The OpenLDAP Foundation. + * Portions Copyright 2000-2003 Kurt D. Zeilenga. + * 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 implements the Fowler / Noll / Vo (FNV-1) hash algorithm. * A summary of the algorithm can be found at: * http://www.isthe.com/chongo/tech/comp/fnv/index.html @@ -29,8 +44,7 @@ void lutil_HASHUpdate( struct lutil_HASHContext *ctx, const unsigned char *buf, - ber_len_t len -) + ber_len_t len ) { const unsigned char *p, *e; ber_uint_t h;