Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for HandshakeComplete (0.24 sec)

  1. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

            if (connected) return;
            connection.connect();
            connected = true;
        }
    
        private void handshake() throws IOException {
            if (handshakeComplete) return;
            doHandshake();
            handshakeComplete = true;
        }
    
        public URL getURL() {
            return connection.getURL();
        }
    
        public int getContentLength() {
            try {
                handshake();
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Fri Mar 22 20:39:42 UTC 2019
    - 20.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/http/NtlmHttpURLConnection.java

        }
    
    
        private void handshake () {
            if ( this.handshakeComplete )
                return;
            try {
                doHandshake();
            }
            catch (
                IOException |
                GeneralSecurityException e ) {
                throw new RuntimeCIFSException("NTLM handshake failed", e);
            }
            this.handshakeComplete = true;
        }
    
    
        @Override
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 25.5K bytes
    - Viewed (0)
  3. src/net/http/httptest/httptest.go

    	if req.Host == "" {
    		req.Host = "example.com"
    	}
    
    	if strings.HasPrefix(target, "https://") {
    		req.TLS = &tls.ConnectionState{
    			Version:           tls.VersionTLS12,
    			HandshakeComplete: true,
    			ServerName:        req.Host,
    		}
    	}
    
    	return req
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 18:09:14 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  4. src/net/http/httptest/httptest_test.go

    				ProtoMajor: 1,
    				ProtoMinor: 1,
    				RemoteAddr: "192.0.2.1:1234",
    				RequestURI: "https://foo.com/path/",
    				TLS: &tls.ConnectionState{
    					Version:           tls.VersionTLS12,
    					HandshakeComplete: true,
    					ServerName:        "foo.com",
    				},
    			},
    			wantBody: "",
    		},
    
    		{
    			name:   "Post with known length",
    			method: "POST",
    			uri:    "/",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 18:09:14 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. src/net/http/cgi/child.go

    	// https://web.archive.org/web/20170105004655/http://docstore.mik.ua/orelly/linux/cgi/ch03_02.htm#ch03-35636
    	if s := params["HTTPS"]; s == "on" || s == "ON" || s == "1" {
    		r.TLS = &tls.ConnectionState{HandshakeComplete: true}
    	}
    
    	if r.Host != "" {
    		// Hostname is provided, so we can reasonably construct a URL.
    		rawurl := r.Host + uriStr
    		if r.TLS == nil {
    			rawurl = "http://" + rawurl
    		} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  6. src/crypto/tls/handshake_client_test.go

    		}
    	}
    
    	return 0, io.EOF
    }
    
    // opensslOutputSink is an io.Writer that receives the stdout and stderr from an
    // `openssl` process and sends a value to handshakeComplete or readKeyUpdate
    // when certain messages are seen.
    type opensslOutputSink struct {
    	handshakeComplete chan struct{}
    	readKeyUpdate     chan struct{}
    	all               []byte
    	line              []byte
    }
    
    func newOpensslOutputSink() *opensslOutputSink {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 88.7K bytes
    - Viewed (0)
  7. src/crypto/tls/tls_test.go

    				t.Errorf("Got versions %x (server) and %x (client), expected %x", ss.Version, cs.Version, v)
    			}
    
    			if !ss.HandshakeComplete || !cs.HandshakeComplete {
    				t.Errorf("Got HandshakeComplete %v (server) and %v (client), expected true", ss.HandshakeComplete, cs.HandshakeComplete)
    			}
    
    			if ss.DidResume || cs.DidResume {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 60.5K bytes
    - Viewed (0)
  8. src/crypto/tls/bogo_shim_test.go

    				}
    			}
    			log.Fatalf("conn error: %s", err)
    		}
    
    		cs := tlsConn.ConnectionState()
    		if cs.HandshakeComplete {
    			if *expectALPN != "" && cs.NegotiatedProtocol != *expectALPN {
    				log.Fatalf("unexpected protocol negotiated: want %q, got %q", *expectALPN, cs.NegotiatedProtocol)
    			}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 17:25:39 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  9. src/crypto/tls/conn.go

    //   - c.hand grows
    //   - c.input is set
    //   - an error is returned
    func (c *Conn) readRecordOrCCS(expectChangeCipherSpec bool) error {
    	if c.in.err != nil {
    		return c.in.err
    	}
    	handshakeComplete := c.isHandshakeComplete.Load()
    
    	// This function modifies c.rawInput, which owns the c.input memory.
    	if c.input.Len() != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  10. src/net/smtp/smtp_test.go

    		}
    		cs, ok := c.TLSConnectionState()
    		if !ok {
    			t.Errorf("TLSConnectionState returned ok == false; want true")
    			return
    		}
    		if cs.Version == 0 || !cs.HandshakeComplete {
    			t.Errorf("ConnectionState = %#v; expect non-zero Version and HandshakeComplete", cs)
    		}
    	}()
    	<-clientDone
    	<-serverDone
    }
    
    func newLocalListener(t *testing.T) net.Listener {
    	ln, err := net.Listen("tcp", "127.0.0.1:0")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 18:42:28 UTC 2024
    - 28.5K bytes
    - Viewed (0)
Back to top