1 /* Copyright 2010, 2011 NORDUnet A/S. All rights reserved.
2 See the file COPYING for licensing information. */
4 #if defined HAVE_CONFIG_H
8 #include <freeradius/libradius.h>
9 #include <radsec/radsec.h>
10 #include <radsec/radsec-impl.h>
13 rs_attr_create(struct rs_connection *conn,
14 struct rs_attr **attr,
22 a = (struct rs_attr *) malloc (sizeof(struct rs_attr));
24 return rs_err_conn_push_fl (conn, RSE_NOMEM, __FILE__, __LINE__, NULL);
25 memset (a, 0, sizeof(struct rs_attr));
27 vp = pairmake (type, val, T_OP_EQ);
31 return rs_err_conn_push_fl (conn, RSE_FR, __FILE__, __LINE__,
32 "pairmake: %s", fr_strerror ());
41 rs_attr_destroy (struct rs_attr *attr)