mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Correct some indentation and line lengths in x509_create.c
This commit is contained in:
		
							parent
							
								
									d355e69aed
								
							
						
					
					
						commit
						cfc47bab69
					
				@ -220,19 +220,23 @@ static int x509_write_name( unsigned char **p, unsigned char *start, mbedtls_asn
 | 
				
			|||||||
    size_t name_len             = cur_name->val.len;
 | 
					    size_t name_len             = cur_name->val.len;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    // Write correct string tag and value
 | 
					    // Write correct string tag and value
 | 
				
			||||||
    MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tagged_string( p, start, cur_name->val.tag,
 | 
					    MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tagged_string( p, start,
 | 
				
			||||||
 | 
					                                                       cur_name->val.tag,
 | 
				
			||||||
                                                       (const char *) name,
 | 
					                                                       (const char *) name,
 | 
				
			||||||
                                                       name_len ) );
 | 
					                                                       name_len ) );
 | 
				
			||||||
    // Write OID
 | 
					    // Write OID
 | 
				
			||||||
    //
 | 
					    //
 | 
				
			||||||
    MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_oid( p, start, oid, oid_len ) );
 | 
					    MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_oid( p, start, oid,
 | 
				
			||||||
 | 
					                                                       oid_len ) );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( p, start, len ) );
 | 
					    MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( p, start, len ) );
 | 
				
			||||||
    MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( p, start, MBEDTLS_ASN1_CONSTRUCTED |
 | 
					    MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( p, start,
 | 
				
			||||||
 | 
					                                                    MBEDTLS_ASN1_CONSTRUCTED |
 | 
				
			||||||
                                                    MBEDTLS_ASN1_SEQUENCE ) );
 | 
					                                                    MBEDTLS_ASN1_SEQUENCE ) );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( p, start, len ) );
 | 
					    MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_len( p, start, len ) );
 | 
				
			||||||
    MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( p, start, MBEDTLS_ASN1_CONSTRUCTED |
 | 
					    MBEDTLS_ASN1_CHK_ADD( len, mbedtls_asn1_write_tag( p, start,
 | 
				
			||||||
 | 
					                                                 MBEDTLS_ASN1_CONSTRUCTED |
 | 
				
			||||||
                                                 MBEDTLS_ASN1_SET ) );
 | 
					                                                 MBEDTLS_ASN1_SET ) );
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return( (int) len );
 | 
					    return( (int) len );
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user