From: Fabio Fiorina Date: Mon, 28 Jan 2002 22:02:53 +0000 (+0000) Subject: gnutls_str_... functions substitution X-Git-Tag: gnutls_0_3_90~163 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f61450bfa49cf245ad54593f87e8a0e7a89b3ce8;p=thirdparty%2Fgnutls.git gnutls_str_... functions substitution --- diff --git a/lib/x509_der.c b/lib/x509_der.c index 71b3789586..8616b78425 100644 --- a/lib/x509_der.c +++ b/lib/x509_der.c @@ -28,6 +28,7 @@ #include "x509_der.h" #include "x509_asn1.h" +#include #define TAG_BOOLEAN 0x01 @@ -270,8 +271,8 @@ _asn1_objectid_der(unsigned char *str,unsigned char *der,int *der_len) if(der==NULL) return; - strcpy(temp,str); - strcat(temp," "); + _gnutls_str_cpy(temp,sizeof(temp),str); + _gnutls_str_cat(temp,sizeof(temp)," "); counter=0; n_start=temp; @@ -321,17 +322,17 @@ _asn1_get_objectid_der(unsigned char *der,int *der_len,unsigned char *str) val1=der[len_len]/40; val=der[len_len]-val1*40; - strcpy(str,_asn1_ltostr(val1,temp)); - strcat(str," "); - strcat(str,_asn1_ltostr(val,temp)); + _gnutls_str_cpy(str,sizeof(str),_asn1_ltostr(val1,temp)); + _gnutls_str_cat(str,sizeof(str)," "); + _gnutls_str_cat(str,sizeof(str),_asn1_ltostr(val,temp)); val=0; for(k=1;k