Home | History | Annotate | Download | only in recovery

Lines Matching full:certificate

160 static Certificate* add_certificate(Certificate** certsp, int* num_keys,
161 Certificate::KeyType key_type) {
164 *certsp = (Certificate*) realloc(*certsp, *num_keys * sizeof(Certificate));
165 Certificate* certs = *certsp;
178 Certificate* certs = NULL;
189 Certificate* cert = &certs[num_keys - 1];
193 Certificate* cert = add_certificate(&certs, &num_keys, Certificate::EC);
197 Certificate* cert = add_certificate(&certs, &num_keys, Certificate::RSA);
201 Certificate* cert = add_certificate(&certs, &num_keys, Certificate::RSA);
225 certs = (Certificate*) calloc(1, sizeof(Certificate));
227 fprintf(stderr, "Failure allocating memory for default certificate\n");
230 certs->key_type = Certificate::RSA;