mirror of
				https://github.com/NVIDIA/nvidia-container-toolkit
				synced 2025-06-26 18:18:24 +00:00 
			
		
		
		
	Merge pull request #938 from NVIDIA/dependabot/go_modules/tests/main/golang.org/x/crypto-0.35.0
Bump golang.org/x/crypto from 0.33.0 to 0.35.0 in /tests
This commit is contained in:
		
						commit
						3ceaf1f85c
					
				| @ -5,7 +5,7 @@ go 1.23.2 | ||||
| require ( | ||||
| 	github.com/onsi/ginkgo/v2 v2.22.2 | ||||
| 	github.com/onsi/gomega v1.36.2 | ||||
| 	golang.org/x/crypto v0.33.0 | ||||
| 	golang.org/x/crypto v0.35.0 | ||||
| ) | ||||
| 
 | ||||
| require ( | ||||
|  | ||||
| @ -16,8 +16,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb | ||||
| github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= | ||||
| github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= | ||||
| github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= | ||||
| golang.org/x/crypto v0.33.0 h1:IOBPskki6Lysi0lo9qQvbxiQ+FvsCC/YWOecCHAixus= | ||||
| golang.org/x/crypto v0.33.0/go.mod h1:bVdXmD7IV/4GdElGPozy6U7lWdRXA4qyRVGJV57uQ5M= | ||||
| golang.org/x/crypto v0.35.0 h1:b15kiHdrGCHrP6LvwaQ3c03kgNhhiMgvlhxHQhmg2Xs= | ||||
| golang.org/x/crypto v0.35.0/go.mod h1:dy7dXNW32cAb/6/PRuTNsix8T+vJAqvuIy5Bli/x0YQ= | ||||
| golang.org/x/net v0.33.0 h1:74SYHlV8BIgHIFC/LrYkOGIwL19eTYXQ5wc6TBuO36I= | ||||
| golang.org/x/net v0.33.0/go.mod h1:HXLR5J+9DxmrqMwG9qjGCxZ+zKXxBru04zlTvWlWuN4= | ||||
| golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc= | ||||
|  | ||||
							
								
								
									
										47
									
								
								tests/vendor/golang.org/x/crypto/ssh/handshake.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										47
									
								
								tests/vendor/golang.org/x/crypto/ssh/handshake.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @ -25,6 +25,11 @@ const debugHandshake = false | ||||
| // quickly.
 | ||||
| const chanSize = 16 | ||||
| 
 | ||||
| // maxPendingPackets sets the maximum number of packets to queue while waiting
 | ||||
| // for KEX to complete. This limits the total pending data to maxPendingPackets
 | ||||
| // * maxPacket bytes, which is ~16.8MB.
 | ||||
| const maxPendingPackets = 64 | ||||
| 
 | ||||
| // keyingTransport is a packet based transport that supports key
 | ||||
| // changes. It need not be thread-safe. It should pass through
 | ||||
| // msgNewKeys in both directions.
 | ||||
| @ -73,11 +78,19 @@ type handshakeTransport struct { | ||||
| 	incoming  chan []byte | ||||
| 	readError error | ||||
| 
 | ||||
| 	mu               sync.Mutex | ||||
| 	writeError       error | ||||
| 	sentInitPacket   []byte | ||||
| 	sentInitMsg      *kexInitMsg | ||||
| 	pendingPackets   [][]byte // Used when a key exchange is in progress.
 | ||||
| 	mu sync.Mutex | ||||
| 	// Condition for the above mutex. It is used to notify a completed key
 | ||||
| 	// exchange or a write failure. Writes can wait for this condition while a
 | ||||
| 	// key exchange is in progress.
 | ||||
| 	writeCond      *sync.Cond | ||||
| 	writeError     error | ||||
| 	sentInitPacket []byte | ||||
| 	sentInitMsg    *kexInitMsg | ||||
| 	// Used to queue writes when a key exchange is in progress. The length is
 | ||||
| 	// limited by pendingPacketsSize. Once full, writes will block until the key
 | ||||
| 	// exchange is completed or an error occurs. If not empty, it is emptied
 | ||||
| 	// all at once when the key exchange is completed in kexLoop.
 | ||||
| 	pendingPackets   [][]byte | ||||
| 	writePacketsLeft uint32 | ||||
| 	writeBytesLeft   int64 | ||||
| 	userAuthComplete bool // whether the user authentication phase is complete
 | ||||
| @ -134,6 +147,7 @@ func newHandshakeTransport(conn keyingTransport, config *Config, clientVersion, | ||||
| 
 | ||||
| 		config: config, | ||||
| 	} | ||||
| 	t.writeCond = sync.NewCond(&t.mu) | ||||
| 	t.resetReadThresholds() | ||||
| 	t.resetWriteThresholds() | ||||
| 
 | ||||
| @ -260,6 +274,7 @@ func (t *handshakeTransport) recordWriteError(err error) { | ||||
| 	defer t.mu.Unlock() | ||||
| 	if t.writeError == nil && err != nil { | ||||
| 		t.writeError = err | ||||
| 		t.writeCond.Broadcast() | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| @ -363,6 +378,8 @@ write: | ||||
| 			} | ||||
| 		} | ||||
| 		t.pendingPackets = t.pendingPackets[:0] | ||||
| 		// Unblock writePacket if waiting for KEX.
 | ||||
| 		t.writeCond.Broadcast() | ||||
| 		t.mu.Unlock() | ||||
| 	} | ||||
| 
 | ||||
| @ -577,11 +594,20 @@ func (t *handshakeTransport) writePacket(p []byte) error { | ||||
| 	} | ||||
| 
 | ||||
| 	if t.sentInitMsg != nil { | ||||
| 		// Copy the packet so the writer can reuse the buffer.
 | ||||
| 		cp := make([]byte, len(p)) | ||||
| 		copy(cp, p) | ||||
| 		t.pendingPackets = append(t.pendingPackets, cp) | ||||
| 		return nil | ||||
| 		if len(t.pendingPackets) < maxPendingPackets { | ||||
| 			// Copy the packet so the writer can reuse the buffer.
 | ||||
| 			cp := make([]byte, len(p)) | ||||
| 			copy(cp, p) | ||||
| 			t.pendingPackets = append(t.pendingPackets, cp) | ||||
| 			return nil | ||||
| 		} | ||||
| 		for t.sentInitMsg != nil { | ||||
| 			// Block and wait for KEX to complete or an error.
 | ||||
| 			t.writeCond.Wait() | ||||
| 			if t.writeError != nil { | ||||
| 				return t.writeError | ||||
| 			} | ||||
| 		} | ||||
| 	} | ||||
| 
 | ||||
| 	if t.writeBytesLeft > 0 { | ||||
| @ -598,6 +624,7 @@ func (t *handshakeTransport) writePacket(p []byte) error { | ||||
| 
 | ||||
| 	if err := t.pushPacket(p); err != nil { | ||||
| 		t.writeError = err | ||||
| 		t.writeCond.Broadcast() | ||||
| 	} | ||||
| 
 | ||||
| 	return nil | ||||
|  | ||||
							
								
								
									
										4
									
								
								tests/vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								tests/vendor/modules.txt
									
									
									
									
										vendored
									
									
								
							| @ -50,8 +50,8 @@ github.com/onsi/gomega/matchers/support/goraph/edge | ||||
| github.com/onsi/gomega/matchers/support/goraph/node | ||||
| github.com/onsi/gomega/matchers/support/goraph/util | ||||
| github.com/onsi/gomega/types | ||||
| # golang.org/x/crypto v0.33.0 | ||||
| ## explicit; go 1.20 | ||||
| # golang.org/x/crypto v0.35.0 | ||||
| ## explicit; go 1.23.0 | ||||
| golang.org/x/crypto/blowfish | ||||
| golang.org/x/crypto/chacha20 | ||||
| golang.org/x/crypto/curve25519 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user