80 |
size_t len = sizeof(AUTH_HDR) + pdu->size; |
size_t len = sizeof(AUTH_HDR) + pdu->size; |
81 |
u_char digest[AUTH_DIGEST_LEN]; |
u_char digest[AUTH_DIGEST_LEN]; |
82 |
|
|
83 |
if (code != RT_AUTHENTICATION_REQUEST) { |
if (code != RT_AUTHENTICATION_REQUEST && code != RT_STATUS_SERVER) { |
84 |
secretlen = strlen(secret); |
secretlen = strlen(secret); |
85 |
obstack_grow(&pdu->st, secret, secretlen); |
obstack_grow(&pdu->st, secret, secretlen); |
86 |
} |
} |
97 |
appended to the pdu wherever necessary */ |
appended to the pdu wherever necessary */ |
98 |
switch (code) { |
switch (code) { |
99 |
case RT_AUTHENTICATION_REQUEST: |
case RT_AUTHENTICATION_REQUEST: |
100 |
|
case RT_STATUS_SERVER: |
101 |
memcpy(hdr->vector, vector, AUTH_VECTOR_LEN); |
memcpy(hdr->vector, vector, AUTH_VECTOR_LEN); |
102 |
break; |
break; |
103 |
|
|