Commit 687c6cd6 authored by jgilbert2017's avatar jgilbert2017

propagate ExceptionFunc to CertificateManager

parent 24b0ffbd
...@@ -43,7 +43,7 @@ namespace Titanium.Web.Proxy.Network ...@@ -43,7 +43,7 @@ namespace Titanium.Web.Proxy.Network
/// </summary> /// </summary>
private readonly ConcurrentDictionary<string, CachedCertificate> certificateCache; private readonly ConcurrentDictionary<string, CachedCertificate> certificateCache;
private readonly ExceptionHandler exceptionFunc; private ExceptionHandler exceptionFunc;
private readonly ConcurrentDictionary<string, Task<X509Certificate2>> pendingCertificateCreationTasks; private readonly ConcurrentDictionary<string, Task<X509Certificate2>> pendingCertificateCreationTasks;
private ICertificateMaker certEngine; private ICertificateMaker certEngine;
...@@ -235,6 +235,10 @@ namespace Titanium.Web.Proxy.Network ...@@ -235,6 +235,10 @@ namespace Titanium.Web.Proxy.Network
/// </summary> /// </summary>
public X509KeyStorageFlags StorageFlag { get; set; } = X509KeyStorageFlags.Exportable; public X509KeyStorageFlags StorageFlag { get; set; } = X509KeyStorageFlags.Exportable;
public ExceptionHandler ExceptionFunc {
set => exceptionFunc = value;
}
/// <summary> /// <summary>
/// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
/// </summary> /// </summary>
......
...@@ -221,7 +221,10 @@ namespace Titanium.Web.Proxy ...@@ -221,7 +221,10 @@ namespace Titanium.Web.Proxy
public ExceptionHandler ExceptionFunc public ExceptionHandler ExceptionFunc
{ {
get => exceptionFunc ?? defaultExceptionFunc; get => exceptionFunc ?? defaultExceptionFunc;
set => exceptionFunc = value; set {
exceptionFunc = value;
CertificateManager.ExceptionFunc = value;
}
} }
/// <summary> /// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment