| 
					
				 | 
			
			
				@@ -1,4 +1,5 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #include <openssl/bio.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+#include <openssl/rsa.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 #include <openssl/x509.h> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -11,10 +12,18 @@ int example_question_setup(void) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   return 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int example_question_teardown(void) { return 0; } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int example_question_teardown(void) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  return 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 /* XXX. apparently openssl does not allow const X509* in get_pkey() func */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int example_question_test(X509* cert) { return 1; } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-int example_question_ask(X509* cert) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int example_question_test(X509* cert) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  return 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int example_question_ask_crt(X509* cert) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   EVP_PKEY* pkey; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -23,6 +32,11 @@ int example_question_ask(X509* cert) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   return 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+int example_question_ask_rsa(RSA *rsa) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+{ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  return 0; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 qa_question_t ExampleQuestion = { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -30,5 +44,6 @@ qa_question_t ExampleQuestion = { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   .setup = example_question_setup, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   .teardown = example_question_teardown, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   .test = example_question_test, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  .ask = example_question_ask 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  .ask_crt = example_question_ask_crt, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  .ask_rsa = example_question_ask_rsa 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }; 
			 |