View | Details | Raw Unified | Return to bug 194400
Collapse All | Expand All

(-)ssl/t1_lib.c (-4 / +4 lines)
Lines 1-4 Link Here
1
/* $OpenBSD: t1_lib.c,v 1.60 2014/10/03 13:58:18 jsing Exp $ */
1
/* $OpenBSD: t1_lib.c,v 1.64 2014/10/15 14:02:16 jsing Exp $ */
2
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
2
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3
 * All rights reserved.
3
 * All rights reserved.
4
 *
4
 *
Lines 458-466 Link Here
458
	if (ec == NULL)
458
	if (ec == NULL)
459
		return (0);
459
		return (0);
460
460
461
	if (EC_KEY_get0_public_key(ec) == NULL)
462
		return (0);
463
464
	/* Determine if it is a prime field. */
461
	/* Determine if it is a prime field. */
465
	if ((grp = EC_KEY_get0_group(ec)) == NULL)
462
	if ((grp = EC_KEY_get0_group(ec)) == NULL)
466
		return (0);
463
		return (0);
Lines 484-489 Link Here
484
481
485
	/* Specify the compression identifier. */
482
	/* Specify the compression identifier. */
486
	if (comp_id != NULL) {
483
	if (comp_id != NULL) {
484
		if (EC_KEY_get0_public_key(ec) == NULL)
485
			return (0);
486
487
		if (EC_KEY_get_conv_form(ec) == POINT_CONVERSION_COMPRESSED) {
487
		if (EC_KEY_get_conv_form(ec) == POINT_CONVERSION_COMPRESSED) {
488
			*comp_id = is_prime ?
488
			*comp_id = is_prime ?
489
			    TLSEXT_ECPOINTFORMAT_ansiX962_compressed_prime :
489
			    TLSEXT_ECPOINTFORMAT_ansiX962_compressed_prime :

Return to bug 194400