mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-04-21 06:19:25 +03:00
Support user-specified server trust chain
This commit is contained in:
+4
-1
@@ -9465,7 +9465,7 @@ UINT StSetServerCert(ADMIN *a, RPC_KEY_PAIR *t)
|
||||
}
|
||||
}
|
||||
|
||||
SetCedarCert(c, t->Cert, t->Key);
|
||||
SetCedarCertAndChain(c, t->Cert, t->Key, t->Chain);
|
||||
|
||||
ALog(a, NULL, "LA_SET_SERVER_CERT");
|
||||
|
||||
@@ -14565,6 +14565,7 @@ void InRpcKeyPair(RPC_KEY_PAIR *t, PACK *p)
|
||||
}
|
||||
|
||||
t->Cert = PackGetX(p, "Cert");
|
||||
t->Chain = PackGetXList(p, "Chain");
|
||||
t->Key = PackGetK(p, "Key");
|
||||
t->Flag1 = PackGetInt(p, "Flag1");
|
||||
}
|
||||
@@ -14577,12 +14578,14 @@ void OutRpcKeyPair(PACK *p, RPC_KEY_PAIR *t)
|
||||
}
|
||||
|
||||
PackAddX(p, "Cert", t->Cert);
|
||||
PackAddXList(p, "Chain", t->Chain);
|
||||
PackAddK(p, "Key", t->Key);
|
||||
PackAddInt(p, "Flag1", t->Flag1);
|
||||
}
|
||||
void FreeRpcKeyPair(RPC_KEY_PAIR *t)
|
||||
{
|
||||
FreeX(t->Cert);
|
||||
FreeXList(t->Chain);
|
||||
FreeK(t->Key);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user