Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for NoClientCert (0.47 sec)

  1. src/crypto/tls/common_string.go

    	}
    }
    func _() {
    	// An "invalid array index" compiler error signifies that the constant values have changed.
    	// Re-run the stringer command to generate them again.
    	var x [1]struct{}
    	_ = x[NoClientCert-0]
    	_ = x[RequestClientCert-1]
    	_ = x[RequireAnyClientCert-2]
    	_ = x[VerifyClientCertIfGiven-3]
    	_ = x[RequireAndVerifyClientCert-4]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 14:56:25 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. src/crypto/tls/handshake_server.go

    	needClientCerts := requiresClientCert(c.config.ClientAuth)
    	if needClientCerts && !sessionHasClientCerts {
    		return nil
    	}
    	if sessionHasClientCerts && c.config.ClientAuth == NoClientCert {
    		return nil
    	}
    	if sessionHasClientCerts && c.config.time().After(sessionState.peerCertificates[0].NotAfter) {
    		return nil
    	}
    	if sessionHasClientCerts && c.config.ClientAuth >= VerifyClientCertIfGiven &&
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 27.6K bytes
    - Viewed (0)
  3. src/crypto/tls/common.go

    // ClientAuthType declares the policy the server will follow for
    // TLS Client Authentication.
    type ClientAuthType int
    
    const (
    	// NoClientCert indicates that no client certificate should be requested
    	// during the handshake, and if any certificates are sent they will not
    	// be verified.
    	NoClientCert ClientAuthType = iota
    	// RequestClientCert indicates that a client certificate should be requested
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
  4. src/crypto/tls/handshake_client_test.go

    					}
    					return checkFields(c, called, "client")
    				}
    			},
    		},
    		{
    			name: "NoClientCert",
    			configureServer: func(config *Config, called *int) {
    				config.ClientAuth = NoClientCert
    				config.VerifyConnection = func(c ConnectionState) error {
    					*called++
    					return checkFields(c, called, "server")
    				}
    			},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  5. src/crypto/tls/handshake_server_tls13.go

    		needClientCerts := requiresClientCert(c.config.ClientAuth)
    		if needClientCerts && !sessionHasClientCerts {
    			continue
    		}
    		if sessionHasClientCerts && c.config.ClientAuth == NoClientCert {
    			continue
    		}
    		if sessionHasClientCerts && c.config.time().After(sessionState.peerCertificates[0].NotAfter) {
    			continue
    		}
    		if sessionHasClientCerts && c.config.ClientAuth >= VerifyClientCertIfGiven &&
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 17:23:54 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  6. src/crypto/tls/tls_test.go

    				clientConfig.Certificates = nil
    			}
    
    			if _, _, err := testHandshake(t, clientConfig, serverConfig); err != nil {
    				t.Fatal(err)
    			}
    
    			want := serverConfig.ClientAuth != NoClientCert
    			if serverVerifyPeerCertificates != want {
    				t.Errorf("VerifyPeerCertificates on the server: got %v, want %v",
    					serverVerifyPeerCertificates, want)
    			}
    			if !clientVerifyPeerCertificates {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
Back to top