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>
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 if ( ber_scanf( ber, "{ao}", &ava->ava_type, &ava->ava_value )
42 Debug( LDAP_DEBUG_ANY, " get_ava ber_scanf\n", 0, 0, 0 );
46 attr_normalize( ava->ava_type );
47 value_normalize( ava->ava_value.bv_val, attr_syntax( ava->ava_type ) );
49 return( LDAP_SUCCESS );
58 ch_free( (char *) ava->ava_type );
59 ch_free( (char *) ava->ava_value.bv_val );
61 ch_free( (char *) ava );