"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ne_pkcs11.c" between
neon-0.31.1.tar.gz and neon-0.31.2.tar.gz

About: neon is an HTTP and WebDAV client library, with a C interface.

ne_pkcs11.c  (neon-0.31.1):ne_pkcs11.c  (neon-0.31.2)
skipping to change at line 27 skipping to change at line 27
Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
MA 02111-1307, USA MA 02111-1307, USA
*/ */
#include "config.h" #include "config.h"
#include "ne_pkcs11.h" #include "ne_pkcs11.h"
#ifdef HAVE_PAKCHOIS #ifdef HAVE_PAKCHOIS
#include <string.h> #include <string.h>
#include <assert.h>
#include <pakchois.h> #include <pakchois.h>
#include "ne_internal.h" #include "ne_internal.h"
#include "ne_alloc.h" #include "ne_alloc.h"
#include "ne_private.h" #include "ne_private.h"
#include "ne_privssl.h" #include "ne_privssl.h"
struct ne_ssl_pkcs11_provider_s { struct ne_ssl_pkcs11_provider_s {
pakchois_module_t *module; pakchois_module_t *module;
skipping to change at line 363 skipping to change at line 364
NE_DEBUG(NE_DBG_SSL, "pk11: Signed successfully.\n"); NE_DEBUG(NE_DBG_SSL, "pk11: Signed successfully.\n");
return 0; return 0;
} }
#endif #endif
static void terminate_string(unsigned char *str, size_t len) static void terminate_string(unsigned char *str, size_t len)
{ {
unsigned char *ptr = str + len - 1; unsigned char *ptr = str + len - 1;
assert(len > 0);
while ((*ptr == ' ' || *ptr == '\t' || *ptr == '\0') && ptr >= str) while ((*ptr == ' ' || *ptr == '\t' || *ptr == '\0') && ptr >= str)
ptr--; ptr--;
if (ptr == str - 1) if (ptr == str + len - 1)
str[0] = '\0';
else if (ptr == str + len - 1)
str[len-1] = '\0'; str[len-1] = '\0';
else else
ptr[1] = '\0'; ptr[1] = '\0';
} }
static int pk11_login(ne_ssl_pkcs11_provider *prov, ck_slot_id_t slot_id, static int pk11_login(ne_ssl_pkcs11_provider *prov, ck_slot_id_t slot_id,
pakchois_session_t *pks, struct ck_slot_info *sinfo) pakchois_session_t *pks, struct ck_slot_info *sinfo)
{ {
struct ck_token_info tinfo; struct ck_token_info tinfo;
int attempt = 0; int attempt = 0;
 End of changes. 3 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)