3 * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
6 /* ava.c - routines for dealing with attribute value assertions */
12 #include <ac/string.h>
13 #include <ac/socket.h>
23 if ( ber_scanf( ber, "{ao}", &ava->ava_type, &ava->ava_value )
25 Debug( LDAP_DEBUG_ANY, " get_ava ber_scanf\n", 0, 0, 0 );
29 attr_normalize( ava->ava_type );
31 #ifdef SLAPD_SCHEMA_COMPAT
32 value_normalize( ava->ava_value.bv_val, attr_syntax( ava->ava_type ) );
35 return( LDAP_SUCCESS );
44 free( (char *) ava->ava_type );
45 free( (char *) ava->ava_value.bv_val );