Lines Matching refs:algoid
24 encode_algoid(BerElement *asn1, KMF_X509_ALGORITHM_IDENTIFIER *algoid,
29 if (kmfber_printf(asn1, "{D", &algoid->algorithm) == -1) {
35 } else if (algoid->parameters.Data == NULL ||
36 algoid->parameters.Length == 0) {
44 (void) kmfber_write(asn1, (char *)algoid->parameters.Data,
45 algoid->parameters.Length, 0);
66 free_algoid(KMF_X509_ALGORITHM_IDENTIFIER *algoid)
68 free_data(&algoid->algorithm);
69 free_data(&algoid->parameters);
260 get_algoid(BerElement *asn1, KMF_X509_ALGORITHM_IDENTIFIER *algoid)
281 algoid->algorithm.Data = (uchar_t *)algoid_data.bv_val;
282 algoid->algorithm.Length = algoid_data.bv_len;
283 algoid->parameters.Data = NULL;
284 algoid->parameters.Length = 0;
294 algoid->algorithm.Data = (uchar_t *)AlgOID.bv_val;
295 algoid->algorithm.Length = AlgOID.bv_len;
300 algoid->parameters.Data = NULL;
301 algoid->parameters.Length = 0;
304 algoid->parameters.Data = NULL;
305 algoid->parameters.Length = 0;
318 algoid->parameters.Data = malloc(size);
319 if (algoid->parameters.Data == NULL) {
324 if (kmfber_read(oidasn1, (char *)algoid->parameters.Data,
329 algoid->parameters.Length = size;
333 free_algoid(algoid);
1936 KMF_X509_ALGORITHM_IDENTIFIER algoid;
1937 if ((ret = get_algoid(der, &algoid)) != KMF_OK)
1939 free_algoid(&algoid);