1 /* See the file COPYING for licensing information. */
3 #include <freeradius/libradius.h>
4 #include <radsec/radsec.h>
5 #include <radsec/radsec-impl.h>
8 rs_attr_create(struct rs_connection *conn, struct rs_attr **attr, const char *type, const char *val)
14 a = (struct rs_attr *) malloc (sizeof(struct rs_attr));
16 return rs_conn_err_push_fl (conn, RSE_NOMEM, __FILE__, __LINE__, NULL);
17 memset (a, 0, sizeof(struct rs_attr));
19 vp = pairmake (type, val, T_OP_EQ);
23 return rs_conn_err_push_fl (conn, RSE_FR, __FILE__, __LINE__,
24 "pairmake: %s", fr_strerror());
33 rs_attr_destroy (struct rs_attr *attr)