"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/osipparser2/osip_authentication_info.c" between
libosip2-5.1.0.tar.gz and libosip2-5.1.1.tar.gz

About: The GNU oSIP library is an implementation of SIP (RFC3261).

osip_authentication_info.c  (libosip2-5.1.0):osip_authentication_info.c  (libosip2-5.1.1)
/* /*
The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-) The oSIP library implements the Session Initiation Protocol (SIP -rfc3261-)
Copyright (C) 2001-2015 Aymeric MOIZARD amoizard@antisip.com Copyright (C) 2001-2020 Aymeric MOIZARD amoizard@antisip.com
This library is free software; you can redistribute it and/or This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version. version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details. Lesser General Public License for more details.
skipping to change at line 386 skipping to change at line 386
char *tmp, *start; char *tmp, *start;
*dest = NULL; *dest = NULL;
if (ainfo == NULL) if (ainfo == NULL)
return OSIP_BADPARAMETER; return OSIP_BADPARAMETER;
len = 0; len = 0;
if (ainfo->auth_type != NULL) if (ainfo->auth_type != NULL)
len = len + strlen (ainfo->auth_type) + 1; len = len + strlen (ainfo->auth_type) + 1;
if (ainfo->nextnonce != NULL) if (ainfo->nextnonce != NULL)
len = len + strlen (ainfo->nextnonce) + 11; len = len + strlen (ainfo->nextnonce) + 12; /* fixed Jan 10,2020: missing on e byte */
if (ainfo->rspauth != NULL) if (ainfo->rspauth != NULL)
len = len + strlen (ainfo->rspauth) + 10; len = len + strlen (ainfo->rspauth) + 10;
if (ainfo->cnonce != NULL) if (ainfo->cnonce != NULL)
len = len + strlen (ainfo->cnonce) + 9; len = len + strlen (ainfo->cnonce) + 9;
if (ainfo->nonce_count != NULL) if (ainfo->nonce_count != NULL)
len = len + strlen (ainfo->nonce_count) + 5; len = len + strlen (ainfo->nonce_count) + 5;
if (ainfo->qop_options != NULL) if (ainfo->qop_options != NULL)
len = len + strlen (ainfo->qop_options) + 6; len = len + strlen (ainfo->qop_options) + 6;
if (ainfo->snum != NULL) if (ainfo->snum != NULL)
len = len + strlen (ainfo->snum) + 7; len = len + strlen (ainfo->snum) + 7;
if (ainfo->srand != NULL) if (ainfo->srand != NULL)
len = len + strlen (ainfo->srand) + 8; len = len + strlen (ainfo->srand) + 8;
if (ainfo->targetname != NULL) if (ainfo->targetname != NULL)
len = len + strlen (ainfo->targetname) + 13; len = len + strlen (ainfo->targetname) + 13;
if (ainfo->realm != NULL) if (ainfo->realm != NULL)
len = len + strlen (ainfo->realm) + 8; len = len + strlen (ainfo->realm) + 8;
if (ainfo->opaque != NULL) if (ainfo->opaque != NULL)
len = len + strlen (ainfo->opaque) + 8; len = len + strlen (ainfo->opaque) + 9; /* fixed Jan 10,2020: missing one by te */
if (len == 0) if (len == 0)
return OSIP_BADPARAMETER; return OSIP_BADPARAMETER;
len++; /* fixed Jan 10,2020: missing one byte for the final \0 added by osip_s tr_append */
tmp = (char *) osip_malloc (len); tmp = (char *) osip_malloc (len);
if (tmp == NULL) if (tmp == NULL)
return OSIP_NOMEM; return OSIP_NOMEM;
*dest = tmp; *dest = tmp;
start = tmp; start = tmp;
if (ainfo->auth_type != NULL) { if (ainfo->auth_type != NULL) {
tmp = osip_str_append (tmp, ainfo->auth_type); tmp = osip_str_append (tmp, ainfo->auth_type);
tmp = osip_str_append (tmp, " "); tmp = osip_str_append (tmp, " ");
start = tmp; start = tmp;
 End of changes. 4 change blocks. 
3 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)