diff options
| author | tb <> | 2018-10-06 10:21:56 +0000 |
|---|---|---|
| committer | tb <> | 2018-10-06 10:21:56 +0000 |
| commit | 703f87cb4b6457ae65e4dfaeba4513c8c741c72b (patch) | |
| tree | 527ea42eee7c67c08d0d623351abf46c1c9ae975 | |
| parent | 25c4bf7ab2da937ff4e90d394484609c7f981a72 (diff) | |
| download | openbsd-703f87cb4b6457ae65e4dfaeba4513c8c741c72b.tar.gz openbsd-703f87cb4b6457ae65e4dfaeba4513c8c741c72b.tar.bz2 openbsd-703f87cb4b6457ae65e4dfaeba4513c8c741c72b.zip | |
free EC_POINT and EC_GROUP
Diffstat (limited to '')
| -rw-r--r-- | src/regress/lib/libcrypto/wycheproof/wycheproof.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go index 61dec505a8..f1a2fe9730 100644 --- a/src/regress/lib/libcrypto/wycheproof/wycheproof.go +++ b/src/regress/lib/libcrypto/wycheproof/wycheproof.go | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: wycheproof.go,v 1.74 2018/10/06 09:27:40 tb Exp $ */ | 1 | /* $OpenBSD: wycheproof.go,v 1.75 2018/10/06 10:21:56 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> |
| 4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> |
| @@ -1323,10 +1323,13 @@ func runECDHWebCryptoTest(nid int, wt *wycheproofTestECDHWebCrypto) bool { | |||
| 1323 | if group == nil { | 1323 | if group == nil { |
| 1324 | log.Fatal("Failed to get EC_GROUP") | 1324 | log.Fatal("Failed to get EC_GROUP") |
| 1325 | } | 1325 | } |
| 1326 | defer C.EC_GROUP_free(group) | ||
| 1327 | |||
| 1326 | pubPoint := C.EC_POINT_new(group) | 1328 | pubPoint := C.EC_POINT_new(group) |
| 1327 | if pubPoint == nil { | 1329 | if pubPoint == nil { |
| 1328 | log.Fatal("Failed to create EC_POINT") | 1330 | log.Fatal("Failed to create EC_POINT") |
| 1329 | } | 1331 | } |
| 1332 | defer C.EC_POINT_free(pubPoint) | ||
| 1330 | 1333 | ||
| 1331 | var bnX *C.BIGNUM | 1334 | var bnX *C.BIGNUM |
| 1332 | x, err := base64.RawURLEncoding.DecodeString(wt.Public.X) | 1335 | x, err := base64.RawURLEncoding.DecodeString(wt.Public.X) |
