Skip to content

Commit efa7294

Browse files
committed
sssd 2.10.2 changes
1 parent 9ed2f4b commit efa7294

3 files changed

Lines changed: 36 additions & 1 deletion

File tree

.github/workflows/sssd.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
fail-fast: false
4545
matrix:
4646
# List of releases to test
47-
ref: [ 2.9.1 ]
47+
ref: [ 2.9.1, 2.10.2 ]
4848
name: ${{ matrix.ref }}
4949
if: github.repository_owner == 'wolfssl'
5050
runs-on: ubuntu-24.04

src/pk_ec.c

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2824,6 +2824,37 @@ int wolfSSL_EC_POINT_copy(WOLFSSL_EC_POINT *dest, const WOLFSSL_EC_POINT *src)
28242824
return ret;
28252825
}
28262826

2827+
/* Duplicates an EC point.
2828+
*
2829+
* @param [in] src EC point to duplicate.
2830+
* @param [in] group EC group for the new point.
2831+
* @return New EC point on success.
2832+
* @return NULL on failure.
2833+
*/
2834+
WOLFSSL_EC_POINT *wolfSSL_EC_POINT_dup(const WOLFSSL_EC_POINT *src,
2835+
const WOLFSSL_EC_GROUP *group)
2836+
{
2837+
WOLFSSL_EC_POINT *dest;
2838+
2839+
WOLFSSL_ENTER("wolfSSL_EC_POINT_dup");
2840+
2841+
if ((src == NULL) || (group == NULL)) {
2842+
return NULL;
2843+
}
2844+
2845+
dest = wolfSSL_EC_POINT_new(group);
2846+
if (dest == NULL) {
2847+
return NULL;
2848+
}
2849+
2850+
if (wolfSSL_EC_POINT_copy(dest, src) != 1) {
2851+
wolfSSL_EC_POINT_free(dest);
2852+
return NULL;
2853+
}
2854+
2855+
return dest;
2856+
}
2857+
28272858
/* Checks whether point is at infinity.
28282859
*
28292860
* Return code compliant with OpenSSL.

wolfssl/openssl/ec.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,9 @@ int wolfSSL_EC_POINT_cmp(const WOLFSSL_EC_GROUP *group,
379379
WOLFSSL_API int wolfSSL_EC_POINT_copy(WOLFSSL_EC_POINT *dest,
380380
const WOLFSSL_EC_POINT *src);
381381
WOLFSSL_API
382+
WOLFSSL_EC_POINT *wolfSSL_EC_POINT_dup(const WOLFSSL_EC_POINT *src,
383+
const WOLFSSL_EC_GROUP *group);
384+
WOLFSSL_API
382385
void wolfSSL_EC_POINT_free(WOLFSSL_EC_POINT *point);
383386
WOLFSSL_API
384387
int wolfSSL_EC_POINT_is_at_infinity(const WOLFSSL_EC_GROUP *group,
@@ -479,6 +482,7 @@ typedef WOLFSSL_EC_KEY_METHOD EC_KEY_METHOD;
479482
#define EC_POINT_clear_free wolfSSL_EC_POINT_clear_free
480483
#define EC_POINT_cmp wolfSSL_EC_POINT_cmp
481484
#define EC_POINT_copy wolfSSL_EC_POINT_copy
485+
#define EC_POINT_dup wolfSSL_EC_POINT_dup
482486
#define EC_POINT_is_at_infinity wolfSSL_EC_POINT_is_at_infinity
483487

484488
#define EC_get_builtin_curves wolfSSL_EC_get_builtin_curves

0 commit comments

Comments
 (0)