1 #include <freeradius/libradius.h>
3 #include "libradsec-impl.h"
6 rs_attr_create(struct rs_connection *conn, struct rs_attr **attr, const char *type, const char *val)
12 a = (struct rs_attr *) malloc (sizeof(struct rs_attr));
14 return rs_conn_err_push_fl (conn, RSE_NOMEM, __FILE__, __LINE__, NULL);
15 memset (a, 0, sizeof(struct rs_attr));
17 vp = pairmake (type, val, T_OP_EQ);
21 return rs_conn_err_push_fl (conn, RSE_FR, __FILE__, __LINE__,
22 "pairmake: %s", fr_strerror());
31 rs_attr_destroy (struct rs_attr *attr)