Make the encoding utils public.

This commit is contained in:
Jonathan Bernard 2021-12-25 18:58:44 -06:00
parent abe03ffc55
commit a740d4ce54
7 changed files with 7 additions and 10 deletions

View File

@ -16,7 +16,8 @@
import std/json, std/options, std/times import std/json, std/options, std/times
import ./private/encoding import ./encoding
import ./private/jsonutils import ./private/jsonutils
import ./private/timeutils import ./private/timeutils

View File

@ -16,8 +16,7 @@
import std/json, std/options, std/sequtils, std/strutils import std/json, std/options, std/sequtils, std/strutils
import ./jwa, ./jwk import ./encoding, ./jwa, ./jwk
import ./private/encoding
import ./private/jsonutils import ./private/jsonutils
type type

View File

@ -13,10 +13,10 @@
import std/json, std/logging, std/options, std/sequtils, std/strutils import std/json, std/logging, std/options, std/sequtils, std/strutils
import ./private/crypto import ./private/crypto
import ./private/encoding
import ./private/jsonutils import ./private/jsonutils
import ./claims import ./claims
import ./encoding
import ./joseheader import ./joseheader
import ./jwa import ./jwa
import ./jwk import ./jwk

View File

@ -1,11 +1,10 @@
import std/tables import std/tables
import bearssl, bearssl_pkey_decoder import bearssl, bearssl_pkey_decoder
import ../../encoding
import ../../jwa import ../../jwa
import ../../jwk import ../../jwk
import ../encoding
import ./hash import ./hash
import ./pem import ./pem

View File

@ -2,11 +2,10 @@ import std/logging
import bearssl import bearssl
import ../../encoding
import ../../jwa import ../../jwa
import ../../jwk import ../../jwk
import ../encoding
proc bearHMAC(message: string, alg: JwtAlgorithm, key: string): string = proc bearHMAC(message: string, alg: JwtAlgorithm, key: string): string =
var vtable: ptr HashClass var vtable: ptr HashClass

View File

@ -1,11 +1,10 @@
import std/options, std/tables import std/options, std/tables
import bearssl, bearssl_pkey_decoder import bearssl, bearssl_pkey_decoder
import ../../encoding
import ../../jwa import ../../jwa
import ../../jwk import ../../jwk
import ../encoding
import ./hash import ./hash
import ./pem import ./pem