2025-04-03 16:23:58
This commit is contained in:
parent
0db9b24dfe
commit
9084d268f6
7 changed files with 17 additions and 17 deletions
|
@ -16,8 +16,8 @@ import (
|
|||
"sync/atomic"
|
||||
"time"
|
||||
|
||||
"git.ct129.com/VPN/cmapi/keys"
|
||||
"git.ct129.com/VPN/cmapi/message"
|
||||
"git.ct129.com/cmesh/cmapi/keys"
|
||||
"git.ct129.com/cmesh/cmapi/message"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
|
|
|
@ -17,12 +17,12 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"git.ct129.com/VPN/cmapi/cmapitest"
|
||||
"git.ct129.com/VPN/cmapi/internal/testutil"
|
||||
"git.ct129.com/VPN/cmapi/keys"
|
||||
"git.ct129.com/VPN/cmapi/message"
|
||||
"git.ct129.com/cmesh/cmapi/cmapitest"
|
||||
"git.ct129.com/cmesh/cmapi/internal/testutil"
|
||||
"git.ct129.com/cmesh/cmapi/keys"
|
||||
"git.ct129.com/cmesh/cmapi/message"
|
||||
"github.com/sirupsen/logrus"
|
||||
"git.ct129.com/VPN/cmesh/cert"
|
||||
"git.ct129.com/cmesh/cmesh/cert"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
"gopkg.in/yaml.v2"
|
||||
|
|
|
@ -19,9 +19,9 @@ import (
|
|||
"net/http/httptest"
|
||||
"time"
|
||||
|
||||
"git.ct129.com/VPN/cmapi/keys"
|
||||
"git.ct129.com/VPN/cmapi/message"
|
||||
"git.ct129.com/VPN/cmesh/cert"
|
||||
"git.ct129.com/cmesh/cmapi/keys"
|
||||
"git.ct129.com/cmesh/cmapi/message"
|
||||
"git.ct129.com/cmesh/cmesh/cert"
|
||||
"gopkg.in/yaml.v2"
|
||||
)
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"os"
|
||||
"time"
|
||||
|
||||
"git.ct129.com/VPN/cmapi"
|
||||
"git.ct129.com/cmesh/cmapi"
|
||||
"github.com/sirupsen/logrus"
|
||||
)
|
||||
|
||||
|
|
6
go.mod
6
go.mod
|
@ -1,11 +1,11 @@
|
|||
module git.ct129.com/VPN/cmapi
|
||||
module git.ct129.com/cmesh/cmapi
|
||||
|
||||
go 1.22.0
|
||||
|
||||
replace git.ct129.com/VPN/cmesh => ../cmesh
|
||||
replace git.ct129.com/cmesh/cmesh => ../cmesh
|
||||
|
||||
require (
|
||||
git.ct129.com/VPN/cmesh v1.0.0
|
||||
git.ct129.com/cmesh/cmesh v1.0.0
|
||||
github.com/sirupsen/logrus v1.9.2
|
||||
github.com/stretchr/testify v1.8.2
|
||||
golang.org/x/crypto v0.9.0
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"fmt"
|
||||
"io"
|
||||
|
||||
"git.ct129.com/VPN/cmesh/cert"
|
||||
"git.ct129.com/cmesh/cmesh/cert"
|
||||
"golang.org/x/crypto/curve25519"
|
||||
)
|
||||
|
||||
|
|
4
sign.go
4
sign.go
|
@ -5,8 +5,8 @@ import (
|
|||
"encoding/json"
|
||||
"time"
|
||||
|
||||
"git.ct129.com/VPN/cmapi/keys"
|
||||
"git.ct129.com/VPN/cmapi/message"
|
||||
"git.ct129.com/cmesh/cmapi/keys"
|
||||
"git.ct129.com/cmesh/cmapi/message"
|
||||
)
|
||||
|
||||
func SignRequestV1(reqType string, value []byte, hostID string, counter uint, privkey keys.PrivateKey) ([]byte, error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue