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 );
28 attr_normalize( ava->ava_type );
29 value_normalize( ava->ava_value.bv_val, attr_syntax( ava->ava_type ) );
31 return( LDAP_SUCCESS );
40 free( (char *) ava->ava_type );
41 free( (char *) ava->ava_value.bv_val );