Skip to content

Commit 2ce6cc6

Browse files
authored
Breaking change correction (#44695)
* fixes #43828 * whoops extra line
1 parent 90c1904 commit 2ce6cc6

File tree

3 files changed

+46
-3
lines changed

3 files changed

+46
-3
lines changed

docs/core/compatibility/10.0.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,10 @@ If you're migrating an app to .NET 10, the breaking changes listed here might af
3535

3636
## Cryptography
3737

38-
| Title | Type of change | Introduced version |
39-
|--------------------------------------------------------------------------------------------------------|-------------------|--------------------|
40-
| [X500DistinguishedName validation is stricter](cryptography/10.0/x500distinguishedname-validation.md) | Behavioral change | Preview 1 |
38+
| Title | Type of change | Introduced version |
39+
|------------------------------------------------------------------------------------------------------------|-------------------|--------------------|
40+
| [X500DistinguishedName validation is stricter](cryptography/10.0/x500distinguishedname-validation.md) | Behavioral change | Preview 1 |
41+
| [Environment variable renamed to DOTNET_OPENSSL_VERSION_OVERRIDE](cryptography/10.0/version-override.md) | Behavioral change | Preview 1 |
4142

4243
## Windows Forms
4344

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
title: "Breaking change: Environment variable renamed to DOTNET_OPENSSL_VERSION_OVERRIDE"
3+
description: Learn about the .NET 10 breaking change in .NET cryptography where the environment variable CLR_OPENSSL_VERSION_OVERRIDE was renamed to DOTNET_OPENSSL_VERSION_OVERRIDE.
4+
ms.date: 02/05/2025
5+
ai-usage: ai-assisted
6+
---
7+
8+
# Environment variable renamed to DOTNET_OPENSSL_VERSION_OVERRIDE
9+
10+
.NET previously supported a configuration-switch environment variable called `CLR_OPENSSL_VERSION_OVERRIDE`, which allowed users to specify the preferred OpenSSL library version for apps running on Linux. In .NET 10, this environment variable has been renamed to `DOTNET_OPENSSL_VERSION_OVERRIDE` to align with the naming convention of other configuration switch environment variables in .NET.
11+
12+
## Previous behavior
13+
14+
The `CLR_OPENSSL_VERSION_OVERRIDE` environment variable was used to specify the preferred OpenSSL version to be loaded in the application.
15+
16+
## New behavior
17+
18+
The `DOTNET_OPENSSL_VERSION_OVERRIDE` environment variable is used to specify the preferred OpenSSL version to be loaded in the application.
19+
20+
## Version introduced
21+
22+
.NET 10 Preview 1
23+
24+
## Type of breaking change
25+
26+
This change is a [behavioral change](../../categories.md#behavioral-change).
27+
28+
## Reason for change
29+
30+
This change ensures the environment variable is consistent with the naming convention used for all [.NET environment variables](../../../tools/dotnet-environment-variables.md).
31+
32+
## Recommended action
33+
34+
If you have a .NET 10 app that previously used the `CLR_OPENSSL_VERSION_OVERRIDE` environment variable, use `DOTNET_OPENSSL_VERSION_OVERRIDE` instead.
35+
36+
## Affected APIs
37+
38+
N/A

docs/core/compatibility/toc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ items:
2626
items:
2727
- name: X500DistinguishedName validation is stricter
2828
href: cryptography/10.0/x500distinguishedname-validation.md
29+
- name: Environment variable renamed to DOTNET_OPENSSL_VERSION_OVERRIDE
30+
href: cryptography/10.0/version-override.md
2931
- name: Globalization
3032
items:
3133
- name: Environment variable renamed to DOTNET_ICU_VERSION_OVERRIDE
@@ -1584,6 +1586,8 @@ items:
15841586
items:
15851587
- name: X500DistinguishedName validation is stricter
15861588
href: cryptography/10.0/x500distinguishedname-validation.md
1589+
- name: Environment variable renamed to DOTNET_OPENSSL_VERSION_OVERRIDE
1590+
href: cryptography/10.0/version-override.md
15871591
- name: .NET 9
15881592
items:
15891593
- name: SafeEvpPKeyHandle.DuplicateHandle up-refs the handle

0 commit comments

Comments
 (0)