Lines Matching defs:header
196 char *nm = NULL, *header = NULL;
202 if (!PEM_read_bio(bp, &nm, &header, &data, &len)) {
210 OPENSSL_free(header);
213 if (!PEM_get_EVP_CIPHER_INFO(header, &cipher))
229 OPENSSL_free(header);
416 int PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher)
420 char **header_pp = &header;
423 if ((header == NULL) || (*header == '\0') || (*header == '\n'))
425 if (strncmp(header, "Proc-Type: ", 11) != 0) {
429 header += 11;
430 if (*header != '4')
432 header++;
433 if (*header != ',')
435 header++;
436 if (strncmp(header, "ENCRYPTED", 9) != 0) {
440 for (; (*header != '\n') && (*header != '\0'); header++) ;
441 if (*header == '\0') {
445 header++;
446 if (strncmp(header, "DEK-Info: ", 10) != 0) {
450 header += 10;
452 p = header;
454 c = *header;
458 header++;
460 *header = '\0';
462 *header = c;
463 header++;
504 int PEM_write(FILE *fp, const char *name, const char *header,
515 ret = PEM_write_bio(b, name, header, data, len);
521 int PEM_write_bio(BIO *bp, const char *name, const char *header,
537 i = strlen(header);
539 if ((BIO_write(bp, header, i) != i) || (BIO_write(bp, "\n", 1) != 1))
578 int PEM_read(FILE *fp, char **name, char **header, unsigned char **data,
589 ret = PEM_read_bio(b, name, header, data, len);
595 int PEM_read_bio(BIO *bp, char **name, char **header, unsigned char **data,
751 *header = headerB->data;