(char *)kstr, klen,
cb, u);
- snprintf(pem_str, 80, "%s PRIVATE KEY", x->ameth->pem_str);
+ (void) snprintf(pem_str, sizeof(pem_str), "%s PRIVATE KEY",
+ x->ameth->pem_str);
return PEM_ASN1_write_bio((i2d_of_void *)i2d_PrivateKey,
pem_str,bp,x,enc,kstr,klen,cb,u);
}
if (!x->ameth || !x->ameth->param_encode)
return 0;
- snprintf(pem_str, 80, "%s PARAMETERS", x->ameth->pem_str);
+ (void) snprintf(pem_str, sizeof(pem_str), "%s PARAMETERS",
+ x->ameth->pem_str);
return PEM_ASN1_write_bio(
(i2d_of_void *)x->ameth->param_encode,
pem_str,bp,x,NULL,NULL,0,0,NULL);
(char *)kstr, klen,
cb, u);
- snprintf(pem_str, 80, "%s PRIVATE KEY", x->ameth->pem_str);
+ (void) snprintf(pem_str, sizeof(pem_str), "%s PRIVATE KEY",
+ x->ameth->pem_str);
return PEM_ASN1_write_bio((i2d_of_void *)i2d_PrivateKey,
pem_str,bp,x,enc,kstr,klen,cb,u);
}
if (!x->ameth || !x->ameth->param_encode)
return 0;
- snprintf(pem_str, 80, "%s PARAMETERS", x->ameth->pem_str);
+ (void) snprintf(pem_str, sizeof(pem_str), "%s PARAMETERS",
+ x->ameth->pem_str);
return PEM_ASN1_write_bio(
(i2d_of_void *)x->ameth->param_encode,
pem_str,bp,x,NULL,NULL,0,0,NULL);