Skip to content
Permalink
Browse files

Password should be const in fr_radius_encode_chap_password

  • Loading branch information
arr2036 committed Aug 29, 2019
1 parent 4dab1f3 commit 827770c9a3416187d4299f5d6b4072e8e85f7f74
Showing with 2 additions and 2 deletions.
  1. +1 −1 src/protocols/radius/encode.c
  2. +1 −1 src/protocols/radius/radius.h
@@ -81,7 +81,7 @@ static inline VALUE_PAIR *next_encodable(fr_cursor_t *cursor)
* we use vp->vp_length, and Ascend gear likes
* to send an extra '\0' in the string!
*/
int fr_radius_encode_chap_password(uint8_t *output, RADIUS_PACKET *packet, int id, VALUE_PAIR *password)
int fr_radius_encode_chap_password(uint8_t *output, RADIUS_PACKET *packet, int id, VALUE_PAIR const *password)
{
int i;
uint8_t *ptr;
@@ -136,7 +136,7 @@ int fr_radius_encode_password(char *encpw, size_t *len, char const *secret, uin

int fr_radius_encode_tunnel_password(char *encpw, size_t *len, char const *secret, uint8_t const *vector);

int fr_radius_encode_chap_password(uint8_t *output, RADIUS_PACKET *packet, int id, VALUE_PAIR *password);
int fr_radius_encode_chap_password(uint8_t *output, RADIUS_PACKET *packet, int id, VALUE_PAIR const *password);

ssize_t fr_radius_encode_pair(uint8_t *out, size_t outlen, fr_cursor_t *cursor, void *encoder_ctx);

0 comments on commit 827770c

Please sign in to comment.
You can’t perform that action at this time.