Lines Matching refs:header
277 char *nm=NULL,*header=NULL;
284 if (!PEM_read_bio(bp,&nm,&header,&data,&len)) {
292 OPENSSL_free(header);
295 if (!PEM_get_EVP_CIPHER_INFO(header,&cipher)) goto err;
308 OPENSSL_free(header);
483 int PEM_get_EVP_CIPHER_INFO(char *header, EVP_CIPHER_INFO *cipher)
487 char **header_pp = &header;
490 if ((header == NULL) || (*header == '\0') || (*header == '\n'))
492 if (strncmp(header,"Proc-Type: ",11) != 0)
494 header+=11;
495 if (*header != '4') return(0); header++;
496 if (*header != ',') return(0); header++;
497 if (strncmp(header,"ENCRYPTED",9) != 0)
499 for (; (*header != '\n') && (*header != '\0'); header++)
501 if (*header == '\0')
503 header++;
504 if (strncmp(header,"DEK-Info: ",10) != 0)
506 header+=10;
508 p=header;
511 c= *header;
521 header++;
523 *header='\0';
525 *header=c;
526 header++;
569 int PEM_write(FILE *fp, char *name, char *header, unsigned char *data,
581 ret=PEM_write_bio(b, name, header, data,len);
587 int PEM_write_bio(BIO *bp, const char *name, char *header, unsigned char *data,
603 i=strlen(header);
606 if ( (BIO_write(bp,header,i) != i) ||
649 int PEM_read(FILE *fp, char **name, char **header, unsigned char **data,
661 ret=PEM_read_bio(b, name, header, data,len);
667 int PEM_read_bio(BIO *bp, char **name, char **header, unsigned char **data,
818 *header=headerB->data;