1 /* Copyright 2010, 2011 NORDUnet A/S. All rights reserved.
2 See LICENSE for licensing information. */
4 /* NOTE: This file is not in use at the moment (libradsec-0.0.1). */
6 #if defined HAVE_CONFIG_H
10 #include <radius/client.h>
11 #include <radsec/radsec.h>
12 #include <radsec/radsec-impl.h>
15 rs_attr_create(struct rs_connection *conn,
16 struct rs_attr **attr,
24 a = (struct rs_attr *) malloc (sizeof(struct rs_attr));
26 return rs_err_conn_push_fl (conn, RSE_NOMEM, __FILE__, __LINE__, NULL);
27 memset (a, 0, sizeof(struct rs_attr));
29 vp = pairmake (type, val, T_OP_EQ);
33 return rs_err_conn_push_fl (conn, RSE_FR, __FILE__, __LINE__,
34 "pairmake: %s", fr_strerror ());
43 rs_attr_destroy (struct rs_attr *attr)