Lines Matching refs:crypto_info
463 struct tls_crypto_info crypto_info = { 0 }; in do_chtls_getsockopt() local
465 crypto_info.version = TLS_1_2_VERSION; in do_chtls_getsockopt()
466 if (copy_to_user(optval, &crypto_info, sizeof(struct tls_crypto_info))) in do_chtls_getsockopt()
486 struct tls_crypto_info *crypto_info, tmp_crypto_info; in do_chtls_setsockopt() local
493 if (!optval || optlen < sizeof(*crypto_info)) { in do_chtls_setsockopt()
498 rc = copy_from_user(&tmp_crypto_info, optval, sizeof(*crypto_info)); in do_chtls_setsockopt()
510 crypto_info = (struct tls_crypto_info *)&csk->tlshws.crypto_info; in do_chtls_setsockopt()
515 crypto_info[0] = tmp_crypto_info; in do_chtls_setsockopt()
517 rc = copy_from_user((char *)crypto_info + sizeof(*crypto_info), in do_chtls_setsockopt()
518 optval + sizeof(*crypto_info), in do_chtls_setsockopt()
520 - sizeof(*crypto_info)); in do_chtls_setsockopt()