Example #1
0
        internal override ServerCredentialsSafeHandle ToNativeCredentials()
        {
            int count = keyCertificatePairs.Count;

            string[] certChains = new string[count];
            string[] keys       = new string[count];
            for (int i = 0; i < count; i++)
            {
                certChains[i] = keyCertificatePairs[i].CertificateChain;
                keys[i]       = keyCertificatePairs[i].PrivateKey;
            }
            return(ServerCredentialsSafeHandle.CreateSslCredentials(rootCertificates, certChains, keys, forceClientAuth));
        }
Example #2
0
 public int AddSecurePort(string addr, ServerCredentialsSafeHandle credentials)
 {
     return(Native.grpcsharp_server_add_secure_http2_port(this, addr, credentials));
 }
Example #3
0
 public int AddSecurePort(string addr, ServerCredentialsSafeHandle credentials)
 {
     return Native.grpcsharp_server_add_secure_http2_port(this, addr, credentials);
 }