You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.Security.Cryptography/SafeEvpPKeyHandle.xml
+37-15Lines changed: 37 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,16 @@
17
17
</Base>
18
18
<Interfaces />
19
19
<Docs>
20
-
<summary>To be added.</summary>
21
-
<remarks>To be added.</remarks>
20
+
<summary>Represents the <seelangword="EVP_PKEY*"/> pointer type from OpenSSL.</summary>
21
+
<remarks>
22
+
<formattype="text/markdown"><![CDATA[
23
+
24
+
## Remarks
25
+
26
+
Before using <xref:System.Security.Cryptography.SafeEvpPKeyHandle> to perform interop with OpenSSL a caller must ensure that the version of OpenSSL they are calling is the same as the version the .NET runtime is calling, and not a side-by-side version. The version of OpenSSL that the runtime is calling can be determined by <xref:System.Security.Cryptography.SafeEvpPKeyHandle.OpenSslVersion>.
<paramname="handle">The handle value to represent.</param>
53
+
<paramname="ownsHandle"><seelangword="true" /> to reliably let <seecref="T:System.Security.Cryptography.SafeEvpPKeyHandle" /> release the handle during the finalization phase; otherwise, <seelangword="false" /> (not recommended).</param>
54
+
<summary>Initializes a new instance of the <seecref="T:System.Security.Cryptography.SafeEvpPKeyHandle" /> class with the specified handle value.</summary>
47
55
<remarks>To be added.</remarks>
48
56
</Docs>
49
57
</Member>
@@ -67,9 +75,11 @@
67
75
</ReturnValue>
68
76
<Parameters />
69
77
<Docs>
70
-
<summary>To be added.</summary>
71
-
<returns>To be added.</returns>
78
+
<summary>Creates another instance of this type which has an independent lifetime but tracks the same resource.</summary>
79
+
<returns>Another instance of this type which has an independent lifetime but tracks the same resource.</returns>
72
80
<remarks>To be added.</remarks>
81
+
<exceptioncref="T:System.InvalidOperationException">This handle is invalid.</exception>
<summary>Gets a value indicating whether the handle value is invalid.</summary>
105
+
<value><seelangword="true" /> if the handle value is invalid; otherwise, <seelangword="false" />.</value>
96
106
<remarks>To be added.</remarks>
97
107
</Docs>
98
108
</Member>
@@ -112,9 +122,21 @@
112
122
<ReturnType>System.Int64</ReturnType>
113
123
</ReturnValue>
114
124
<Docs>
115
-
<summary>To be added.</summary>
116
-
<value>To be added.</value>
117
-
<remarks>To be added.</remarks>
125
+
<summary>Gets a value representing the version number as reported by the loaded version of OpenSSL.</summary>
126
+
<value>A value representing the version number as reported by the loaded version of OpenSSL.</value>
127
+
<remarks>
128
+
<formattype="text/markdown"><![CDATA[
129
+
130
+
## Remarks
131
+
132
+
Before using <xref:System.Security.Cryptography.SafeEvpPKeyHandle> to perform interop with OpenSSL a caller must ensure that the version of OpenSSL they are calling is the same as the version the .NET runtime is calling, and not a side-by-side version.
133
+
134
+
For OpenSSL 1.1.0 and newer, this value is reported from the `OpenSSL_version_num()` function. When an older version of OpenSSL is in use, this value is reported from the `SSLeay()` function.
135
+
136
+
Callers are encouraged to only perform an equality check with this value.
137
+
138
+
]]></format>
139
+
</remarks>
118
140
</Docs>
119
141
</Member>
120
142
<MemberMemberName="ReleaseHandle">
@@ -137,10 +159,10 @@
137
159
</ReturnValue>
138
160
<Parameters />
139
161
<Docs>
140
-
<summary>To be added.</summary>
141
-
<returns>To be added.</returns>
162
+
<summary>Executes the code required to free the handle.</summary>
163
+
<returns><seelangword="true"/> in all cases.</returns>
0 commit comments