struct tls_cipherspec *pending,
struct tls_cipherspec *active ) {
struct tls_cipherspec *pending,
struct tls_cipherspec *active ) {
( pending->cipher == &crypto_null ) ||
( pending->digest == &crypto_null ) ) {
DBGC ( tls, "TLS %p refusing to use null cipher\n", tls );
return -ENOTSUP;
}
( pending->cipher == &crypto_null ) ||
( pending->digest == &crypto_null ) ) {
DBGC ( tls, "TLS %p refusing to use null cipher\n", tls );
return -ENOTSUP;
}
tls_clear_cipher ( tls, active );
memswap ( active, pending, sizeof ( *active ) );
tls_clear_cipher ( tls, active );
memswap ( active, pending, sizeof ( *active ) );