Lines Matching refs:secret
33 static int rc_pack_list (VALUE_PAIR *vp, char *secret, AUTH_HDR *auth) in rc_pack_list() argument
106 secretlen = strlen (secret); in rc_pack_list()
110 strcpy ((char *) md5buf, secret); in rc_pack_list()
141 secretlen = strlen (secret); in rc_pack_list()
142 strcpy ((char *) md5buf, secret); in rc_pack_list()
209 char secret[MAX_SECRET_LENGTH + 1]; in rc_send_server() local
223 strcpy(secret, MGMT_POLL_SECRET); in rc_send_server()
229 if (rc_find_server (server_name, &auth_ipaddr, secret) != 0) in rc_send_server()
238 memset (secret, '\0', sizeof (secret)); in rc_send_server()
253 memset (secret, '\0', sizeof (secret)); in rc_send_server()
268 total_length = rc_pack_list(data->send_pairs, secret, auth) + AUTH_HDR_LEN; in rc_send_server()
273 secretlen = strlen (secret); in rc_send_server()
274 memcpy ((char *) auth + total_length, secret, secretlen); in rc_send_server()
283 total_length = rc_pack_list(data->send_pairs, secret, auth) + AUTH_HDR_LEN; in rc_send_server()
308 memset (secret, '\0', sizeof (secret)); in rc_send_server()
324 memset (secret, '\0', sizeof (secret)); in rc_send_server()
338 memset (secret, '\0', sizeof (secret)); in rc_send_server()
344 result = rc_check_reply (recv_auth, BUFFER_LEN, secret, vector, data->seq_nbr); in rc_send_server()
351 memcpy(info->secret, secret, sizeof(info->secret)); in rc_send_server()
355 memset (secret, '\0', sizeof (secret)); in rc_send_server()
395 static int rc_check_reply (AUTH_HDR *auth, int bufferlen, char *secret, in rc_check_reply() argument
405 secretlen = strlen (secret); in rc_check_reply()
430 memcpy ((char *) auth + totallen, secret, secretlen); in rc_check_reply()