3 * Copyright 1998-2000 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>
17 #ifdef SLAPD_SCHEMA_NOT_COMPAT
21 AttributeAssertion *ava,
25 ad_free( ava->aa_desc, 1 );
26 ber_bvfree( ava->aa_value );
28 ch_free( (char *) ava );
40 ch_free( (char *) ava->ava_type );
41 ch_free( (char *) ava->ava_value.bv_val );
43 ch_free( (char *) ava );
53 if ( ber_scanf( ber, "{ao}", &ava->ava_type, &ava->ava_value )
55 Debug( LDAP_DEBUG_ANY, " get_ava ber_scanf\n", 0, 0, 0 );
56 return SLAPD_DISCONNECT;
59 attr_normalize( ava->ava_type );
60 value_normalize( ava->ava_value.bv_val, attr_syntax( ava->ava_type ) );