2 * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
3 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
5 /* ava.c - routines for dealing with attribute value assertions */
11 #include <ac/string.h>
12 #include <ac/socket.h>
22 if ( ber_scanf( ber, "{ao}", &ava->ava_type, &ava->ava_value )
24 Debug( LDAP_DEBUG_ANY, " get_ava ber_scanf\n", 0, 0, 0 );
27 attr_normalize( ava->ava_type );
28 value_normalize( ava->ava_value.bv_val, attr_syntax( ava->ava_type ) );
30 return( LDAP_SUCCESS );
39 free( (char *) ava->ava_type );
40 free( (char *) ava->ava_value.bv_val );