new: name aliasing

Create u_alias.go to hold any alias names created by version upgrades or other necessary changes (e.g., upstream breaking change) to prevent further breaking the API.
This commit is contained in:
Gaukas Wang 2023-10-09 20:56:51 -06:00
parent ef75789913
commit b4873b0030
No known key found for this signature in database
GPG key ID: 9E2F8986D76F8B5D

12
u_alias.go Normal file
View file

@ -0,0 +1,12 @@
package tls
// This file contains all the alias functions, symbols, names, etc. that
// was once used in the old version of the library. This is to ensure
// backwards compatibility with the old version of the library.
// TLS Extensions
// UtlsExtendedMasterSecretExtension is an alias for ExtendedMasterSecretExtension.
//
// Deprecated: Use ExtendedMasterSecretExtension instead.
type UtlsExtendedMasterSecretExtension = ExtendedMasterSecretExtension