asn_mime.c (238405) | asn_mime.c (269682) |
---|---|
1/* asn_mime.c */ 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 3 * project. 4 */ 5/* ==================================================================== 6 * Copyright (c) 1999-2008 The OpenSSL Project. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 653 unchanged lines hidden (view full) --- 662 char *p, *q, c; 663 char *ntmp; 664 char linebuf[MAX_SMLEN]; 665 MIME_HEADER *mhdr = NULL; 666 STACK_OF(MIME_HEADER) *headers; 667 int len, state, save_state = 0; 668 669 headers = sk_MIME_HEADER_new(mime_hdr_cmp); | 1/* asn_mime.c */ 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 3 * project. 4 */ 5/* ==================================================================== 6 * Copyright (c) 1999-2008 The OpenSSL Project. All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 653 unchanged lines hidden (view full) --- 662 char *p, *q, c; 663 char *ntmp; 664 char linebuf[MAX_SMLEN]; 665 MIME_HEADER *mhdr = NULL; 666 STACK_OF(MIME_HEADER) *headers; 667 int len, state, save_state = 0; 668 669 headers = sk_MIME_HEADER_new(mime_hdr_cmp); |
670 if (!headers) 671 return NULL; |
|
670 while ((len = BIO_gets(bio, linebuf, MAX_SMLEN)) > 0) { 671 /* If whitespace at line start then continuation line */ 672 if(mhdr && isspace((unsigned char)linebuf[0])) state = MIME_NAME; 673 else state = MIME_START; 674 ntmp = NULL; 675 /* Go through all characters */ 676 for(p = linebuf, q = linebuf; (c = *p) && (c!='\r') && (c!='\n'); p++) { 677 --- 274 unchanged lines hidden --- | 672 while ((len = BIO_gets(bio, linebuf, MAX_SMLEN)) > 0) { 673 /* If whitespace at line start then continuation line */ 674 if(mhdr && isspace((unsigned char)linebuf[0])) state = MIME_NAME; 675 else state = MIME_START; 676 ntmp = NULL; 677 /* Go through all characters */ 678 for(p = linebuf, q = linebuf; (c = *p) && (c!='\r') && (c!='\n'); p++) { 679 --- 274 unchanged lines hidden --- |