mirror of
				https://github.com/cuberite/polarssl.git
				synced 2025-11-04 04:32:24 -05:00 
			
		
		
		
	Add tests for re-init flow for context serialization
This commit is contained in:
		
							parent
							
								
									304d61cede
								
							
						
					
					
						commit
						c2376f049a
					
				@ -1282,30 +1282,60 @@ run_test    "Truncated HMAC, DTLS: client enabled, server enabled" \
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
# Tests for Context serialization
 | 
					# Tests for Context serialization
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					skip_next_test
 | 
				
			||||||
requires_config_enabled MBEDTLS_SSL_CONTEXT_SERIALIZATION
 | 
					requires_config_enabled MBEDTLS_SSL_CONTEXT_SERIALIZATION
 | 
				
			||||||
run_test    "(STUB) Context serialization, client serializes/deserializes" \
 | 
					run_test    "(STUB) Context serialization, client serializes" \
 | 
				
			||||||
            "$P_SRV serialize=0 exchanges=2" \
 | 
					            "$P_SRV serialize=0 exchanges=2" \
 | 
				
			||||||
            "$P_CLI serialize=1 exchanges=2" \
 | 
					            "$P_CLI serialize=1 exchanges=2" \
 | 
				
			||||||
            0 \
 | 
					            0 \
 | 
				
			||||||
            -c "Deserializing connection..." \
 | 
					            -c "Deserializing connection..." \
 | 
				
			||||||
            -S "Deserializing connection..."
 | 
					            -S "Deserializing connection..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					skip_next_test
 | 
				
			||||||
requires_config_enabled MBEDTLS_SSL_CONTEXT_SERIALIZATION
 | 
					requires_config_enabled MBEDTLS_SSL_CONTEXT_SERIALIZATION
 | 
				
			||||||
run_test    "(STUB) Context serialization, server serializes/deserializes" \
 | 
					run_test    "(STUB) Context serialization, server serializes" \
 | 
				
			||||||
            "$P_SRV serialize=1 exchanges=2" \
 | 
					            "$P_SRV serialize=1 exchanges=2" \
 | 
				
			||||||
            "$P_CLI serialize=0 exchanges=2" \
 | 
					            "$P_CLI serialize=0 exchanges=2" \
 | 
				
			||||||
            0 \
 | 
					            0 \
 | 
				
			||||||
            -C "Deserializing connection..." \
 | 
					            -C "Deserializing connection..." \
 | 
				
			||||||
            -s "Deserializing connection..."
 | 
					            -s "Deserializing connection..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					skip_next_test
 | 
				
			||||||
requires_config_enabled MBEDTLS_SSL_CONTEXT_SERIALIZATION
 | 
					requires_config_enabled MBEDTLS_SSL_CONTEXT_SERIALIZATION
 | 
				
			||||||
run_test    "(STUB) Context serialization, both serialize/deserialize" \
 | 
					run_test    "(STUB) Context serialization, both serialize" \
 | 
				
			||||||
            "$P_SRV serialize=1 exchanges=2" \
 | 
					            "$P_SRV serialize=1 exchanges=2" \
 | 
				
			||||||
            "$P_CLI serialize=1 exchanges=2" \
 | 
					            "$P_CLI serialize=1 exchanges=2" \
 | 
				
			||||||
            0 \
 | 
					            0 \
 | 
				
			||||||
            -c "Deserializing connection..." \
 | 
					            -c "Deserializing connection..." \
 | 
				
			||||||
            -s "Deserializing connection..."
 | 
					            -s "Deserializing connection..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					skip_next_test
 | 
				
			||||||
 | 
					requires_config_enabled MBEDTLS_SSL_CONTEXT_SERIALIZATION
 | 
				
			||||||
 | 
					run_test    "(STUB) Context serialization, re-init, client serializes" \
 | 
				
			||||||
 | 
					            "$P_SRV serialize=0 exchanges=2" \
 | 
				
			||||||
 | 
					            "$P_CLI serialize=2 exchanges=2" \
 | 
				
			||||||
 | 
					            0 \
 | 
				
			||||||
 | 
					            -c "Deserializing connection..." \
 | 
				
			||||||
 | 
					            -S "Deserializing connection..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					skip_next_test
 | 
				
			||||||
 | 
					requires_config_enabled MBEDTLS_SSL_CONTEXT_SERIALIZATION
 | 
				
			||||||
 | 
					run_test    "(STUB) Context serialization, re-init, server serializes" \
 | 
				
			||||||
 | 
					            "$P_SRV serialize=2 exchanges=2" \
 | 
				
			||||||
 | 
					            "$P_CLI serialize=0 exchanges=2" \
 | 
				
			||||||
 | 
					            0 \
 | 
				
			||||||
 | 
					            -C "Deserializing connection..." \
 | 
				
			||||||
 | 
					            -s "Deserializing connection..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					skip_next_test
 | 
				
			||||||
 | 
					requires_config_enabled MBEDTLS_SSL_CONTEXT_SERIALIZATION
 | 
				
			||||||
 | 
					run_test    "(STUB) Context serialization, re-init, both serialize" \
 | 
				
			||||||
 | 
					            "$P_SRV serialize=2 exchanges=2" \
 | 
				
			||||||
 | 
					            "$P_CLI serialize=2 exchanges=2" \
 | 
				
			||||||
 | 
					            0 \
 | 
				
			||||||
 | 
					            -c "Deserializing connection..." \
 | 
				
			||||||
 | 
					            -s "Deserializing connection..."
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Tests for DTLS Connection ID extension
 | 
					# Tests for DTLS Connection ID extension
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# So far, the CID API isn't implemented, so we can't
 | 
					# So far, the CID API isn't implemented, so we can't
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user