if (rpkt == NULL)
return rs_err_conn_push (conn, RSE_NOMEM, __func__);
- /*
- * This doesn't make sense; the packet identifier is constant for
- * an entire conversation. A separate API should be provided to
- * allow the application to set the packet ID, or a conversation
- * object should group related packets together.
- */
-#if 0
- rpkt->id = conn->nextid++
-#endif
-
err = nr_packet_init (rpkt, NULL, NULL,
PW_ACCESS_REQUEST,
rpkt + 1, RS_MAX_PACKET_LEN);
int
rs_packet_create_authn_request (struct rs_connection *conn,
struct rs_packet **pkt_out,
- const char *user_name,
- const char *user_pw,
- const char *secret)
+ const char *user_name, const char *user_pw)
{
struct rs_packet *pkt;
int err;
if (user_pw)
{
- pkt->rpkt->secret = secret;
err = rs_packet_append_avp (pkt, PW_USER_PASSWORD, 0, user_pw, 0);
if (err)
return err;
da = nr_dict_attr_byvalue (attr, vendor);
if (da == NULL)
- return RSE_ATTR_TYPE_UNKNOWN;
+ return rs_err_conn_push (pkt->conn, RSE_ATTR_TYPE_UNKNOWN, __func__);
err = nr_packet_attr_append (pkt->rpkt, NULL, da, data, data_len);
if (err < 0)