Home | History | Annotate | Download | only in recovery

Lines Matching refs:Certificate

155 static Certificate* add_certificate(Certificate** certsp, int* num_keys,
156 Certificate::KeyType key_type) {
159 *certsp = (Certificate*) realloc(*certsp, *num_keys * sizeof(Certificate));
160 Certificate* certs = *certsp;
173 Certificate* certs = NULL;
184 Certificate* cert = &certs[num_keys - 1];
188 Certificate* cert = add_certificate(&certs, &num_keys, Certificate::EC);
192 Certificate* cert = add_certificate(&certs, &num_keys, Certificate::RSA);
196 Certificate* cert = add_certificate(&certs, &num_keys, Certificate::RSA);
220 certs = (Certificate*) calloc(1, sizeof(Certificate));
222 fprintf(stderr, "Failure allocating memory for default certificate\n");
225 certs->key_type = Certificate::RSA;