crypto/ocsp/ocsp_lib.c:657: error: BUFFER_OVERRUN_L3
  Offset: [-529, +oo] Size: 12 by call to `X509_print`.
Showing all 15 steps of the trace


crypto/ocsp/ocsp_lib.c:637:7: Call
635.   		        goto err;
636.   		}
637.   	if (!OCSP_extensions_print(bp, rd->responseExtensions,
             ^
638.   				   "Basic Response Extensions")) goto err;
639.   	i=OBJ_obj2nid(br->signatureAlgorithm->algorithm);

crypto/ocsp/ocsp_ext.c:253:1: Parameter `**sk->data`
  251.   	}
  252.   
  253. > int OCSP_extensions_print(BIO *bp,
  254.   			  STACK_OF(X509_EXTENSION) *sk,
  255.   			  char *title)

crypto/ocsp/ocsp_lib.c:657:5: Call
655.   		for (i=0; i<sk_X509_num(br->certs); i++)
656.   			if (sk_X509_value(br->certs,i) != NULL) {
657.   				X509_print(bp, sk_X509_value(br->certs,i));
           ^
658.   				PEM_write_bio_X509(bp,sk_X509_value(br->certs,i));
659.   			}

crypto/asn1/t_x509.c:96:1: Parameter `*x->cert_info->validity->notAfter->data`
  94.   #endif
  95.   
  96. > int X509_print(BIO *bp, X509 *x)
  97.   {
  98.   	return X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT);

crypto/asn1/t_x509.c:98:9: Call
  96.   int X509_print(BIO *bp, X509 *x)
  97.   {
  98.   	return X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT);
                 ^
  99.   }
  100.   

crypto/asn1/t_x509.c:101:1: Parameter `*x->cert_info->validity->notAfter->data`
    99.   }
    100.   
    101. > int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag)
    102.   	{
    103.   	long l;

crypto/asn1/t_x509.c:186:8: Call
    184.   		if (!ASN1_TIME_print(bp,X509_get_notBefore(x))) goto err;
    185.   		if (BIO_write(bp,"\n            Not After : ",25) <= 0) goto err;
    186.   		if (!ASN1_TIME_print(bp,X509_get_notAfter(x))) goto err;
                  ^
    187.   		if (BIO_write(bp,"\n",1) <= 0) goto err;
    188.   		}

crypto/asn1/t_x509.c:364:1: Parameter `*tm->data`
      362.   	}
      363.   
      364. > int ASN1_TIME_print(BIO *bp, ASN1_TIME *tm)
      365.   {
      366.   	if(tm->type == V_ASN1_UTCTIME) return ASN1_UTCTIME_print(bp, tm);

crypto/asn1/t_x509.c:368:12: Call
      366.   	if(tm->type == V_ASN1_UTCTIME) return ASN1_UTCTIME_print(bp, tm);
      367.   	if(tm->type == V_ASN1_GENERALIZEDTIME)
      368.   				return ASN1_GENERALIZEDTIME_print(bp, tm);
                        ^
      369.   	BIO_write(bp,"Bad time value",14);
      370.   	return(0);

crypto/asn1/t_x509.c:379:1: <Offset trace>
377.       };
378.   
379. > int ASN1_GENERALIZEDTIME_print(BIO *bp, ASN1_GENERALIZEDTIME *tm)
380.   	{
381.   	char *v;

crypto/asn1/t_x509.c:379:1: Parameter `*tm->data`
        377.       };
        378.   
        379. > int ASN1_GENERALIZEDTIME_print(BIO *bp, ASN1_GENERALIZEDTIME *tm)
        380.   	{
        381.   	char *v;

crypto/asn1/t_x509.c:394:2: Assignment
        392.   		if ((v[i] > '9') || (v[i] < '0')) goto err;
        393.   	y= (v[0]-'0')*1000+(v[1]-'0')*100 + (v[2]-'0')*10+(v[3]-'0');
        394.   	M= (v[4]-'0')*10+(v[5]-'0');
                ^
        395.   	if ((M > 12) || (M < 1)) goto err;
        396.   	d= (v[6]-'0')*10+(v[7]-'0');

crypto/asn1/t_x509.c:373:1: <Length trace>
371.   }
372.   
373. > static const char *mon[12]=
374.       {
375.       "Jan","Feb","Mar","Apr","May","Jun",

crypto/asn1/t_x509.c:373:1: Array declaration
        371.   }
        372.   
        373. > static const char *mon[12]=
        374.       {
        375.       "Jan","Feb","Mar","Apr","May","Jun",

crypto/asn1/t_x509.c:404:3: Array access: Offset: [-529, +oo] Size: 12 by call to `X509_print` 
        402.   
        403.   	if (BIO_printf(bp,"%s %2d %02d:%02d:%02d %d%s",
        404.   		mon[M-1],d,h,m,s,y,(gmt)?" GMT":"") <= 0)
                 ^
        405.   		return(0);
        406.   	else

int ASN1_GENERALIZEDTIME_print(BIO *bp, ASN1_GENERALIZEDTIME *tm)
	{
	char *v;
	int gmt=0;
	int i;
	int y=0,M=0,d=0,h=0,m=0,s=0;
	i=tm->length;
	v=(char *)tm->data;
	if (i < 12) goto err;
	if (v[i-1] == 'Z') gmt=1;
	for (i=0; i<12; i++)
		if ((v[i] > '9') || (v[i] < '0')) goto err;
	y= (v[0]-'0')*1000+(v[1]-'0')*100 + (v[2]-'0')*10+(v[3]-'0');
	M= (v[4]-'0')*10+(v[5]-'0');
	if ((M > 12) || (M < 1)) goto err;
	d= (v[6]-'0')*10+(v[7]-'0');
	h= (v[8]-'0')*10+(v[9]-'0');
	m=  (v[10]-'0')*10+(v[11]-'0');
	if (	(v[12] >= '0') && (v[12] <= '9') &&
		(v[13] >= '0') && (v[13] <= '9'))
		s=  (v[12]-'0')*10+(v[13]-'0');
	if (BIO_printf(bp,"%s %2d %02d:%02d:%02d %d%s",
		mon[M-1],d,h,m,s,y,(gmt)?" GMT":"") <= 0)
		return(0);
	else
		return(1);
err:
	BIO_write(bp,"Bad time value",14);
	return(0);
	}
['int OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE* o)\n        {\n\tint i, j, n;\n\tlong l;\n\tchar *s;\n\tunsigned char *p;\n\tOCSP_CERTID *cid = NULL;\n\tOCSP_BASICRESP *br = NULL;\n\tOCSP_RESPDATA  *rd = NULL;\n\tOCSP_CERTSTATUS *cst = NULL;\n\tOCSP_REVOKEDINFO *rev = NULL;\n\tOCSP_SINGLERESP *single = NULL;\n\tOCSP_RESPBYTES *rb = o->responseBytes;\n\tl=ASN1_ENUMERATED_get(o->responseStatus);\n\tif (BIO_printf(bp,"OCSP Response Status: %s (0x%x)\\n",\n\t\t       ocspResponseStatus2string(l), l) <= 0) goto err;\n\tif (rb == NULL) return 1;\n\ti=OBJ_obj2nid(rb->responseType);\n        if (BIO_printf(bp,"OCSP Response Bytes Response Type: %s",\n\t\t       (i == NID_undef)?"UNKNOWN":OBJ_nid2sn(i)) <= 0)\n\t        goto err;\n\tif (i != NID_id_pkix_OCSP_basic)\n\t        {\n\t\tBIO_printf(bp," (unknown response type)\\n");\n\t\treturn 1;\n\t\t}\n\tp = ASN1_STRING_data(rb->response);\n\ti = ASN1_STRING_length(rb->response);\n\tif (!(d2i_OCSP_BASICRESP(&br, &p, i))) goto err;\n\trd = br->tbsResponseData;\n\tl=ASN1_INTEGER_get(rd->version);\n\tif (BIO_printf(bp,"\\nBasic Response Data Version: %lu (0x%lx)\\n",\n\t\t       l+1,l) <= 0) goto err;\n\tif (BIO_printf(bp,"Basic Response Data Responder Id: ") <= 0) goto err;\n\ti2a_OCSP_RESPID(bp, rd->responderId);\n\tif (BIO_printf(bp,"\\nBasic Response Data Produced At: ")<=0) goto err;\n\tif (!ASN1_GENERALIZEDTIME_print(bp, rd->producedAt)) goto err;\n\tif (BIO_printf(bp,"\\nBasic Response Data Responses:\\n") <= 0) goto err;\n\tfor (i = 0; i < sk_OCSP_SINGLERESP_num(rd->responses); i++)\n\t        {\n\t\tif (! sk_OCSP_SINGLERESP_value(rd->responses, i)) continue;\n\t\tsingle = sk_OCSP_SINGLERESP_value(rd->responses, i);\n\t\tcid = single->certId;\n\t\tj=OBJ_obj2nid(cid->hashAlgorithm->algorithm);\n\t\tif (BIO_printf(bp,"    Cert Id:") <= 0) goto err;\n\t\tif (BIO_printf(bp,"\\n%8sHash Algorithm: %s","",\n\t\t\t       (j == NID_undef)?"UNKNOWN":OBJ_nid2ln(j)) <= 0)\n\t\t        goto err;\n\t\tif (BIO_write(bp,"\\n        Issuer Name Hash: ",27) <= 0)\n\t\t        goto err;\n\t\ti2a_ASN1_STRING(bp, cid->issuerNameHash, V_ASN1_OCTET_STRING);\n\t\tif (BIO_write(bp,"\\n        Issuer Key Hash: ",26) <= 0)\n\t\t        goto err;\n\t\ti2a_ASN1_STRING(bp, cid->issuerKeyHash, V_ASN1_OCTET_STRING);\n\t\tif (BIO_write(bp,"\\n        Serial Number: ",24) <= 0)\n\t\t        goto err;\n\t\tif (!i2a_ASN1_INTEGER(bp, cid->serialNumber))\n\t\t        goto err;\n\t\tcst = single->certStatus;\n\t\tif (BIO_printf(bp,"\\n    Cert Status: %s (0x%x)",\n\t\t\t       ocspCertStatus2string(cst->tag), cst->tag) <= 0)\n\t\t        goto err;\n\t\tif (cst->tag == V_OCSP_CERTSTATUS_REVOKED)\n\t\t        {\n\t\t        rev = cst->revoked;\n\t\t\tif (BIO_printf(bp, "\\n    Revocation Time: ") <= 0)\n\t\t\t        goto err;\n\t\t\tif (!ASN1_GENERALIZEDTIME_print(bp,\n\t\t\t\t\t\t\trev->revocationTime))\n\t\t\t\tgoto err;\n\t\t\tif (rev->revocationReason)\n\t\t\t        {\n\t\t\t\tl=ASN1_ENUMERATED_get(rev->revocationReason);\n\t\t\t\tif (BIO_printf(bp,\n\t\t\t\t\t "\\n    Revocation Reason: %s (0x%x)",\n\t\t\t\t\t       cRLReason2string(l), l) <= 0)\n\t\t\t\t        goto err;\n\t\t\t\t}\n\t\t\t}\n\t\tif (BIO_printf(bp,"\\n    This Update: ") <= 0) goto err;\n\t\tif (!ASN1_GENERALIZEDTIME_print(bp, single->thisUpdate))\n\t\t\tgoto err;\n\t\tif (single->nextUpdate)\n\t\t        {\n\t\t\tif (BIO_printf(bp,"\\n    Next Update: ") <= 0)goto err;\n\t\t\tif (!ASN1_GENERALIZEDTIME_print(bp,single->nextUpdate))\n\t\t\t\tgoto err;\n\t\t\t}\n\t\tif (!BIO_write(bp,"\\n",1)) goto err;\n\t\tif (!OCSP_extensions_print(bp, single->singleExtensions,\n\t\t\t\t\t   "Basic Response Single Extensions"))\n\t\t        goto err;\n\t\t}\n\tif (!OCSP_extensions_print(bp, rd->responseExtensions,\n\t\t\t\t   "Basic Response Extensions")) goto err;\n\ti=OBJ_obj2nid(br->signatureAlgorithm->algorithm);\n\tif (BIO_printf(bp,"Basic Response Signature Algorithm: %s",\n\t\t       (i == NID_undef)?"UNKNOWN":OBJ_nid2ln(i)) <= 0)\n\t        goto err;\n\tn=br->signature->length;\n\ts=(char *)br->signature->data;\n\tfor (i=0; i<n; i++)\n\t\t{\n\t\tif ((i%18) == 0)\n\t\tif (BIO_write(bp,"\\n        ",9) <= 0) goto err;\n\t\tif (BIO_printf(bp,"%02x%s",(unsigned char)s[i],\n\t\t\t((i+1) == n)?"":":") <= 0) goto err;\n\t\t}\n\tif (BIO_write(bp,"\\n",1) != 1) goto err;\n\tif (br->certs)\n\t        {\n\t\tfor (i=0; i<sk_X509_num(br->certs); i++)\n\t\t\tif (sk_X509_value(br->certs,i) != NULL) {\n\t\t\t\tX509_print(bp, sk_X509_value(br->certs,i));\n\t\t\t\tPEM_write_bio_X509(bp,sk_X509_value(br->certs,i));\n\t\t\t}\n\t\t}\n\treturn 1;\nerr:\n\treturn 0;\n\t}', 'int OCSP_extensions_print(BIO *bp,\n\t\t\t  STACK_OF(X509_EXTENSION) *sk,\n\t\t\t  char *title)\n        {\n\tint i;\n\tif (!sk) return 1;\n\tif (BIO_printf(bp, "%s:\\n", title) <= 0) return 0;\n\tfor (i=0; i<sk_X509_EXTENSION_num(sk); i++)\n\t        OCSP_extension_print(bp, sk_X509_EXTENSION_value(sk,i), 4);\n\treturn sk_X509_EXTENSION_num(sk);\n\t}', 'int X509_print(BIO *bp, X509 *x)\n{\n\treturn X509_print_ex(bp, x, XN_FLAG_COMPAT, X509_FLAG_COMPAT);\n}', 'int X509_print_ex(BIO *bp, X509 *x, unsigned long nmflags, unsigned long cflag)\n\t{\n\tlong l;\n\tint ret=0,i,j,n;\n\tchar *m=NULL,*s, mlch = \' \';\n\tint nmindent = 0;\n\tX509_CINF *ci;\n\tASN1_INTEGER *bs;\n\tEVP_PKEY *pkey=NULL;\n\tconst char *neg;\n\tX509_EXTENSION *ex;\n\tASN1_STRING *str=NULL;\n\tif((nmflags & XN_FLAG_SEP_MASK) == XN_FLAG_SEP_MULTILINE) {\n\t\t\tmlch = \'\\n\';\n\t\t\tnmindent = 16;\n\t}\n\tif(nmflags == X509_FLAG_COMPAT)\n\t\tnmindent = 16;\n\tci=x->cert_info;\n\tif(!(cflag & X509_FLAG_NO_HEADER))\n\t\t{\n\t\tif (BIO_write(bp,"Certificate:\\n",13) <= 0) goto err;\n\t\tif (BIO_write(bp,"    Data:\\n",10) <= 0) goto err;\n\t\t}\n\tif(!(cflag & X509_FLAG_NO_VERSION))\n\t\t{\n\t\tl=X509_get_version(x);\n\t\tif (BIO_printf(bp,"%8sVersion: %lu (0x%lx)\\n","",l+1,l) <= 0) goto err;\n\t\t}\n\tif(!(cflag & X509_FLAG_NO_SERIAL))\n\t\t{\n\t\tif (BIO_write(bp,"        Serial Number:",22) <= 0) goto err;\n\t\tbs=X509_get_serialNumber(x);\n\t\tif (bs->length <= 4)\n\t\t\t{\n\t\t\tl=ASN1_INTEGER_get(bs);\n\t\t\tif (l < 0)\n\t\t\t\t{\n\t\t\t\tl= -l;\n\t\t\t\tneg="-";\n\t\t\t\t}\n\t\t\telse\n\t\t\t\tneg="";\n\t\t\tif (BIO_printf(bp," %s%lu (%s0x%lx)\\n",neg,l,neg,l) <= 0)\n\t\t\t\tgoto err;\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\tneg=(bs->type == V_ASN1_NEG_INTEGER)?" (Negative)":"";\n\t\t\tif (BIO_printf(bp,"\\n%12s%s","",neg) <= 0) goto err;\n\t\t\tfor (i=0; i<bs->length; i++)\n\t\t\t\t{\n\t\t\t\tif (BIO_printf(bp,"%02x%c",bs->data[i],\n\t\t\t\t\t((i+1 == bs->length)?\'\\n\':\':\')) <= 0)\n\t\t\t\t\tgoto err;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\tif(!(cflag & X509_FLAG_NO_SIGNAME))\n\t\t{\n\t\ti=OBJ_obj2nid(ci->signature->algorithm);\n\t\tif (BIO_printf(bp,"%8sSignature Algorithm: %s\\n","",\n\t\t\t(i == NID_undef)?"UNKNOWN":OBJ_nid2ln(i)) <= 0)\n\t\t\tgoto err;\n\t\t}\n\tif(!(cflag & X509_FLAG_NO_ISSUER))\n\t\t{\n\t\tif (BIO_printf(bp,"        Issuer:%c",mlch) <= 0) goto err;\n\t\tif (!X509_NAME_print_ex(bp,X509_get_issuer_name(x),nmindent, nmflags)) goto err;\n\t\t}\n\tif(!(cflag & X509_FLAG_NO_VALIDITY))\n\t\t{\n\t\tif (BIO_write(bp,"\\n        Validity\\n",18) <= 0) goto err;\n\t\tif (BIO_write(bp,"            Not Before: ",24) <= 0) goto err;\n\t\tif (!ASN1_TIME_print(bp,X509_get_notBefore(x))) goto err;\n\t\tif (BIO_write(bp,"\\n            Not After : ",25) <= 0) goto err;\n\t\tif (!ASN1_TIME_print(bp,X509_get_notAfter(x))) goto err;\n\t\tif (BIO_write(bp,"\\n",1) <= 0) goto err;\n\t\t}\n\tif(!(cflag & X509_FLAG_NO_SUBJECT))\n\t\t{\n\t\tif (BIO_printf(bp,"        Subject:%c",mlch) <= 0) goto err;\n\t\tif (!X509_NAME_print_ex(bp,X509_get_subject_name(x),nmindent, nmflags)) goto err;\n\t\t}\n\tif(!(cflag & X509_FLAG_NO_PUBKEY))\n\t\t{\n\t\tif (BIO_write(bp,"\\n        Subject Public Key Info:\\n",34) <= 0)\n\t\t\tgoto err;\n\t\ti=OBJ_obj2nid(ci->key->algor->algorithm);\n\t\tif (BIO_printf(bp,"%12sPublic Key Algorithm: %s\\n","",\n\t\t\t(i == NID_undef)?"UNKNOWN":OBJ_nid2ln(i)) <= 0) goto err;\n\t\tpkey=X509_get_pubkey(x);\n\t\tif (pkey == NULL)\n\t\t\t{\n\t\t\tBIO_printf(bp,"%12sUnable to load Public Key\\n","");\n\t\t\tERR_print_errors(bp);\n\t\t\t}\n\t\telse\n#ifndef NO_RSA\n\t\tif (pkey->type == EVP_PKEY_RSA)\n\t\t\t{\n\t\t\tBIO_printf(bp,"%12sRSA Public Key: (%d bit)\\n","",\n\t\t\tBN_num_bits(pkey->pkey.rsa->n));\n\t\t\tRSA_print(bp,pkey->pkey.rsa,16);\n\t\t\t}\n\t\telse\n#endif\n#ifndef NO_DSA\n\t\tif (pkey->type == EVP_PKEY_DSA)\n\t\t\t{\n\t\t\tBIO_printf(bp,"%12sDSA Public Key:\\n","");\n\t\t\tDSA_print(bp,pkey->pkey.dsa,16);\n\t\t\t}\n\t\telse\n#endif\n\t\t\tBIO_printf(bp,"%12sUnknown Public Key:\\n","");\n\t\tEVP_PKEY_free(pkey);\n\t\t}\n\tif (cflag & X509_FLAG_NO_EXTENSIONS)\n\t\tn = 0;\n\telse\n\t\tn=X509_get_ext_count(x);\n\tif (n > 0)\n\t\t{\n\t\tBIO_printf(bp,"%8sX509v3 extensions:\\n","");\n\t\tfor (i=0; i<n; i++)\n\t\t\t{\n\t\t\tASN1_OBJECT *obj;\n\t\t\tex=X509_get_ext(x,i);\n\t\t\tif (BIO_printf(bp,"%12s","") <= 0) goto err;\n\t\t\tobj=X509_EXTENSION_get_object(ex);\n\t\t\ti2a_ASN1_OBJECT(bp,obj);\n\t\t\tj=X509_EXTENSION_get_critical(ex);\n\t\t\tif (BIO_printf(bp,": %s\\n",j?"critical":"","") <= 0)\n\t\t\t\tgoto err;\n\t\t\tif(!X509V3_EXT_print(bp, ex, cflag, 16))\n\t\t\t\t{\n\t\t\t\tBIO_printf(bp, "%16s", "");\n\t\t\t\tM_ASN1_OCTET_STRING_print(bp,ex->value);\n\t\t\t\t}\n\t\t\tif (BIO_write(bp,"\\n",1) <= 0) goto err;\n\t\t\t}\n\t\t}\n\tif(!(cflag & X509_FLAG_NO_SIGDUMP))\n\t\t{\n\t\ti=OBJ_obj2nid(x->sig_alg->algorithm);\n\t\tif (BIO_printf(bp,"%4sSignature Algorithm: %s","",\n\t\t\t(i == NID_undef)?"UNKNOWN":OBJ_nid2ln(i)) <= 0) goto err;\n\t\tn=x->signature->length;\n\t\ts=(char *)x->signature->data;\n\t\tfor (i=0; i<n; i++)\n\t\t\t{\n\t\t\tif ((i%18) == 0)\n\t\t\t\tif (BIO_write(bp,"\\n        ",9) <= 0) goto err;\n\t\t\tif (BIO_printf(bp,"%02x%s",(unsigned char)s[i],\n\t\t\t\t((i+1) == n)?"":":") <= 0) goto err;\n\t\t\t}\n\t\tif (BIO_write(bp,"\\n",1) != 1) goto err;\n\t\t}\n\tif(!(cflag & X509_FLAG_NO_AUX))\n\t\t{\n\t\tif (!X509_CERT_AUX_print(bp, x->aux, 0)) goto err;\n\t\t}\n\tret=1;\nerr:\n\tif (str != NULL) ASN1_STRING_free(str);\n\tif (m != NULL) OPENSSL_free(m);\n\treturn(ret);\n\t}', 'int ASN1_TIME_print(BIO *bp, ASN1_TIME *tm)\n{\n\tif(tm->type == V_ASN1_UTCTIME) return ASN1_UTCTIME_print(bp, tm);\n\tif(tm->type == V_ASN1_GENERALIZEDTIME)\n\t\t\t\treturn ASN1_GENERALIZEDTIME_print(bp, tm);\n\tBIO_write(bp,"Bad time value",14);\n\treturn(0);\n}', 'int ASN1_GENERALIZEDTIME_print(BIO *bp, ASN1_GENERALIZEDTIME *tm)\n\t{\n\tchar *v;\n\tint gmt=0;\n\tint i;\n\tint y=0,M=0,d=0,h=0,m=0,s=0;\n\ti=tm->length;\n\tv=(char *)tm->data;\n\tif (i < 12) goto err;\n\tif (v[i-1] == \'Z\') gmt=1;\n\tfor (i=0; i<12; i++)\n\t\tif ((v[i] > \'9\') || (v[i] < \'0\')) goto err;\n\ty= (v[0]-\'0\')*1000+(v[1]-\'0\')*100 + (v[2]-\'0\')*10+(v[3]-\'0\');\n\tM= (v[4]-\'0\')*10+(v[5]-\'0\');\n\tif ((M > 12) || (M < 1)) goto err;\n\td= (v[6]-\'0\')*10+(v[7]-\'0\');\n\th= (v[8]-\'0\')*10+(v[9]-\'0\');\n\tm=  (v[10]-\'0\')*10+(v[11]-\'0\');\n\tif (\t(v[12] >= \'0\') && (v[12] <= \'9\') &&\n\t\t(v[13] >= \'0\') && (v[13] <= \'9\'))\n\t\ts=  (v[12]-\'0\')*10+(v[13]-\'0\');\n\tif (BIO_printf(bp,"%s %2d %02d:%02d:%02d %d%s",\n\t\tmon[M-1],d,h,m,s,y,(gmt)?" GMT":"") <= 0)\n\t\treturn(0);\n\telse\n\t\treturn(1);\nerr:\n\tBIO_write(bp,"Bad time value",14);\n\treturn(0);\n\t}']