X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=providers%2Fimplementations%2Fserializers%2Fserializer_dh_pub.c;fp=providers%2Fimplementations%2Fserializers%2Fserializer_dh_pub.c;h=b79f1df2165fe375f7de80d2a46360c4b0085f1f;hb=31d2daecb384475da13c4bf7c76a2dde0077b2f2;hp=6ca79c944455e14b6c1c22ec0eabfea2faf5adb0;hpb=116d2510f7e95d1e6f4a6b9db2df1ec8d11b61fb;p=thirdparty%2Fopenssl.git diff --git a/providers/implementations/serializers/serializer_dh_pub.c b/providers/implementations/serializers/serializer_dh_pub.c index 6ca79c9444..b79f1df216 100644 --- a/providers/implementations/serializers/serializer_dh_pub.c +++ b/providers/implementations/serializers/serializer_dh_pub.c @@ -80,7 +80,8 @@ static int dh_pub_der(void *ctx, void *dh, OSSL_CORE_BIO *cout, if (out == NULL) return 0; - ret = ossl_prov_write_pub_der_from_obj(out, dh, EVP_PKEY_DH, + ret = ossl_prov_write_pub_der_from_obj(out, dh, + ossl_prov_dh_type_to_evp(dh), ossl_prov_prepare_dh_params, ossl_prov_dh_pub_to_der); BIO_free(out); @@ -120,7 +121,8 @@ static int dh_pub_pem(void *ctx, void *dh, OSSL_CORE_BIO *cout, if (out == NULL) return 0; - ret = ossl_prov_write_pub_pem_from_obj(out, dh, EVP_PKEY_DH, + ret = ossl_prov_write_pub_pem_from_obj(out, dh, + ossl_prov_dh_type_to_evp(dh), ossl_prov_prepare_dh_params, ossl_prov_dh_pub_to_der); BIO_free(out);