mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-10-31 17:25:06 +03:00 
			
		
		
		
	work-in-progress on more cleanup
This commit is contained in:
		
							parent
							
								
									59c5644a52
								
							
						
					
					
						commit
						ef1e506a0c
					
				
					 9 changed files with 74 additions and 74 deletions
				
			
		|  | @ -34,7 +34,7 @@ func (t *tcptls) init(tcp *tcp) { | |||
| 	} | ||||
| 
 | ||||
| 	edpriv := make(ed25519.PrivateKey, ed25519.PrivateKeySize) | ||||
| 	copy(edpriv[:], tcp.link.core.sigPriv[:]) | ||||
| 	copy(edpriv[:], tcp.links.core.sigPriv[:]) | ||||
| 
 | ||||
| 	certBuf := &bytes.Buffer{} | ||||
| 
 | ||||
|  | @ -42,7 +42,7 @@ func (t *tcptls) init(tcp *tcp) { | |||
| 	pubtemp := x509.Certificate{ | ||||
| 		SerialNumber: big.NewInt(1), | ||||
| 		Subject: pkix.Name{ | ||||
| 			CommonName: hex.EncodeToString(tcp.link.core.sigPub[:]), | ||||
| 			CommonName: hex.EncodeToString(tcp.links.core.sigPub[:]), | ||||
| 		}, | ||||
| 		NotBefore:             time.Now(), | ||||
| 		NotAfter:              time.Now().Add(time.Hour * 24 * 365), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Arceliar
						Arceliar