mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 13:12:46 +00:00 
			
		
		
		
	LibTLS: Even more ByteBuffer -> Span conversion
This commit is contained in:
		
							parent
							
								
									f82b0a78ef
								
							
						
					
					
						commit
						e517505e35
					
				
					 8 changed files with 18 additions and 23 deletions
				
			
		|  | @ -89,10 +89,7 @@ void HttpsJob::shutdown() | |||
| 
 | ||||
| void HttpsJob::set_certificate(String certificate, String private_key) | ||||
| { | ||||
|     if (!m_socket->add_client_key( | ||||
|             ByteBuffer::wrap(const_cast<char*>(certificate.characters()), certificate.length()), | ||||
|             ByteBuffer::wrap(const_cast<char*>(private_key.characters()), private_key.length()))) { | ||||
| 
 | ||||
|     if (!m_socket->add_client_key(certificate.bytes(), private_key.bytes())) { | ||||
|         dbg() << "LibHTTP: Failed to set a client certificate"; | ||||
|         // FIXME: Do something about this failure
 | ||||
|         ASSERT_NOT_REACHED(); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling