when using fake keys, skip the private key check
authoreric <eric@openbsd.org>
Thu, 21 Jan 2021 22:03:25 +0000 (22:03 +0000)
committereric <eric@openbsd.org>
Thu, 21 Jan 2021 22:03:25 +0000 (22:03 +0000)
ok tb@

lib/libtls/tls_config.c

index e3e90aa..9144dad 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls_config.c,v 1.62 2021/01/21 19:09:10 eric Exp $ */
+/* $OpenBSD: tls_config.c,v 1.63 2021/01/21 22:03:25 eric Exp $ */
 /*
  * Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
  *
@@ -811,6 +811,7 @@ void
 tls_config_use_fake_private_key(struct tls_config *config)
 {
        config->use_fake_private_key = 1;
+       config->skip_private_key_check = 1;
 }
 
 int