Lines Matching refs:header
279 char *nm = NULL, *header = NULL;
285 if (!PEM_read_bio(bp, &nm, &header, &data, &len)) {
293 OPENSSL_free(header);
296 if (!PEM_get_EVP_CIPHER_INFO(header, &cipher))
312 OPENSSL_free(header);
489 int PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher)
493 char **header_pp = &header;
496 if ((header == NULL) || (*header == '\0') || (*header == '\n'))
498 if (strncmp(header, "Proc-Type: ", 11) != 0) {
502 header += 11;
503 if (*header != '4')
505 header++;
506 if (*header != ',')
508 header++;
509 if (strncmp(header, "ENCRYPTED", 9) != 0) {
513 for (; (*header != '\n') && (*header != '\0'); header++) ;
514 if (*header == '\0') {
518 header++;
519 if (strncmp(header, "DEK-Info: ", 10) != 0) {
523 header += 10;
525 p = header;
527 c = *header;
536 header++;
538 *header = '\0';
540 *header = c;
541 header++;
582 int PEM_write(FILE *fp, const char *name, const char *header,
593 ret = PEM_write_bio(b, name, header, data, len);
599 int PEM_write_bio(BIO *bp, const char *name, const char *header,
615 i = strlen(header);
617 if ((BIO_write(bp, header, i) != i) || (BIO_write(bp, "\n", 1) != 1))
658 int PEM_read(FILE *fp, char **name, char **header, unsigned char **data,
669 ret = PEM_read_bio(b, name, header, data, len);
675 int PEM_read_bio(BIO *bp, char **name, char **header, unsigned char **data,
831 *header = headerB->data;