impl: uquic with utls

This commit is contained in:
Gaukas Wang 2023-07-29 23:45:16 -06:00
parent 251b3afe6e
commit fca46117e4
No known key found for this signature in database
GPG key ID: 9E2F8986D76F8B5D
56 changed files with 445 additions and 88 deletions

View file

@ -2,7 +2,6 @@ package self_test
import (
"context"
"crypto/tls"
"fmt"
"io"
mrand "math/rand"
@ -11,6 +10,8 @@ import (
"sync/atomic"
"time"
tls "github.com/refraction-networking/utls"
"github.com/quic-go/quic-go/quicvarint"
"github.com/quic-go/quic-go"

View file

@ -2,12 +2,13 @@ package self_test
import (
"context"
"crypto/tls"
"fmt"
"io"
"net"
"time"
tls "github.com/refraction-networking/utls"
"github.com/quic-go/quic-go"
quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy"

View file

@ -2,13 +2,14 @@ package self_test
import (
"context"
"crypto/tls"
"errors"
"fmt"
"io"
"net"
"time"
tls "github.com/refraction-networking/utls"
"github.com/quic-go/quic-go"
"github.com/quic-go/quic-go/internal/protocol"
"github.com/quic-go/quic-go/internal/qerr"

View file

@ -2,11 +2,12 @@ package self_test
import (
"context"
"crypto/tls"
"fmt"
"net"
"time"
tls "github.com/refraction-networking/utls"
"github.com/quic-go/quic-go"
. "github.com/onsi/ginkgo/v2"

View file

@ -3,7 +3,6 @@ package self_test
import (
"bytes"
"context"
"crypto/tls"
"crypto/x509"
"flag"
"fmt"
@ -16,6 +15,8 @@ import (
"testing"
"time"
tls "github.com/refraction-networking/utls"
"github.com/quic-go/quic-go"
"github.com/quic-go/quic-go/integrationtests/tools"
"github.com/quic-go/quic-go/internal/protocol"

View file

@ -4,7 +4,6 @@ package self_test
import (
"context"
"crypto/tls"
"fmt"
"io"
mrand "math/rand"
@ -13,6 +12,8 @@ import (
"sync/atomic"
"time"
tls "github.com/refraction-networking/utls"
"github.com/quic-go/quic-go"
quicproxy "github.com/quic-go/quic-go/integrationtests/tools/proxy"
"github.com/quic-go/quic-go/internal/protocol"

View file

@ -4,8 +4,8 @@ package self_test
import (
"context"
"crypto/tls"
"fmt"
tls "github.com/refraction-networking/utls"
"io"
mrand "math/rand"
"net"

View file

@ -5,12 +5,13 @@ import (
"crypto/ed25519"
"crypto/rand"
"crypto/rsa"
"crypto/tls"
"crypto/x509"
"crypto/x509/pkix"
"math/big"
"net"
"time"
tls "github.com/refraction-networking/utls"
)
const ALPN = "quic-go integration tests"

View file

@ -2,10 +2,11 @@ package versionnegotiation
import (
"context"
"crypto/tls"
"fmt"
"net"
tls "github.com/refraction-networking/utls"
"github.com/quic-go/quic-go"
"github.com/quic-go/quic-go/integrationtests/tools/israce"
"github.com/quic-go/quic-go/internal/protocol"

View file

@ -2,11 +2,12 @@ package versionnegotiation
import (
"context"
"crypto/tls"
"crypto/x509"
"flag"
"testing"
tls "github.com/refraction-networking/utls"
"github.com/quic-go/quic-go/integrationtests/tools"
"github.com/quic-go/quic-go/logging"