Lines Matching refs:length
190 X509 *d2i_X509_AUX(X509 **a, const unsigned char **pp, long length) in d2i_X509_AUX() argument
201 ret = d2i_X509(a, &q, length); in d2i_X509_AUX()
206 length -= q - *pp; in d2i_X509_AUX()
207 if (length > 0 && !d2i_X509_CERT_AUX(&ret->aux, &q, length)) in d2i_X509_AUX()
228 int length, tmplen; in i2d_x509_aux_internal() local
236 length = i2d_X509(a, pp); in i2d_x509_aux_internal()
237 if (length <= 0 || a == NULL) in i2d_x509_aux_internal()
238 return length; in i2d_x509_aux_internal()
246 length += tmplen; in i2d_x509_aux_internal()
248 return length; in i2d_x509_aux_internal()
262 int length; in i2d_X509_AUX() local
270 if ((length = i2d_x509_aux_internal(a, NULL)) <= 0) in i2d_X509_AUX()
271 return length; in i2d_X509_AUX()
274 *pp = tmp = OPENSSL_malloc(length); in i2d_X509_AUX()
279 length = i2d_x509_aux_internal(a, &tmp); in i2d_X509_AUX()
280 if (length <= 0) { in i2d_X509_AUX()
284 return length; in i2d_X509_AUX()