Lines Matching refs:hdr
104 static MIME_PARAM *mime_param_find(MIME_HEADER *hdr, char *name);
105 static void mime_hdr_free(MIME_HEADER *hdr);
365 MIME_HEADER *hdr;
377 if(!(hdr = mime_hdr_find(headers, "content-type")) || !hdr->value) {
385 if(!strcmp(hdr->value, "multipart/signed")) {
387 prm = mime_param_find(hdr, "boundary");
412 if(!(hdr = mime_hdr_find(headers, "content-type")) ||
413 !hdr->value) {
419 if(strcmp(hdr->value, "application/x-pkcs7-signature") &&
420 strcmp(hdr->value, "application/pkcs7-signature")) {
423 ERR_add_error_data(2, "type: ", hdr->value);
445 if (strcmp (hdr->value, "application/x-pkcs7-mime") &&
446 strcmp (hdr->value, "application/pkcs7-mime")) {
448 ERR_add_error_data(2, "type: ", hdr->value);
507 MIME_HEADER *hdr;
513 if(!(hdr = mime_hdr_find(headers, "content-type")) || !hdr->value) {
518 if (strcmp (hdr->value, "text/plain")) {
520 ERR_add_error_data(2, "type: ", hdr->value);
814 static MIME_PARAM *mime_param_find(MIME_HEADER *hdr, char *name)
819 idx = sk_MIME_PARAM_find(hdr->params, ¶m);
821 return sk_MIME_PARAM_value(hdr->params, idx);
824 static void mime_hdr_free(MIME_HEADER *hdr)
826 if(hdr->name) OPENSSL_free(hdr->name);
827 if(hdr->value) OPENSSL_free(hdr->value);
828 if(hdr->params) sk_MIME_PARAM_pop_free(hdr->params, mime_param_free);
829 OPENSSL_free(hdr);