up
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#if !BESTHTTP_DISABLE_ALTERNATE_SSL && (!UNITY_WEBGL || UNITY_EDITOR)
|
||||
namespace Org.BouncyCastle.Asn1.X9
|
||||
{
|
||||
public abstract class X9ECParametersHolder
|
||||
{
|
||||
private X9ECParameters parameters;
|
||||
|
||||
public X9ECParameters Parameters
|
||||
{
|
||||
get
|
||||
{
|
||||
lock (this)
|
||||
{
|
||||
if (parameters == null)
|
||||
{
|
||||
parameters = CreateParameters();
|
||||
}
|
||||
|
||||
return parameters;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected abstract X9ECParameters CreateParameters();
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user