Skip to content

Commit

Permalink
chore: update lpac to latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
damonto committed Oct 19, 2023
1 parent b2ecdb9 commit b6aa2ad
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions esim/esim.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,16 @@ func (e *esim) execute(arguments []string) ([]byte, error) {

os.Setenv("AT_DEVICE", e.device)
os.Setenv("APDU_INTERFACE", e.lpacPath+"/libapduinterface_at.so")
os.Setenv("ES9P_INTERFACE", e.lpacPath+"/libes9pinterface_curl.so")
os.Setenv("OUTPUT_JSON", "1")
os.Setenv("HTTP_INTERFACE", e.lpacPath+"/libhttpinterface_curl.so")

slog.Info("command executing", "arguments", strings.Join(arguments, " "))
cmd := exec.Command(lpacBin, arguments...)
var stdout bytes.Buffer
var stderr bytes.Buffer
cmd.Stdout = &stdout
cmd.Stderr = &stderr
err := cmd.Run()
slog.Info("command executed", "output", stdout.String(), "error", err)
slog.Info("command executed", "output", stdout.String(), "stderr", stderr.String(), "error", err)

if err != nil {
var errResp errorResponse
Expand Down
Binary file modified esim/lpac/linux-amd64/libapduinterface_at.so
Binary file not shown.
Binary file modified esim/lpac/linux-amd64/libapduinterface_pcsc.so
Binary file not shown.
Binary file added esim/lpac/linux-amd64/libapduinterface_stdio.so
Binary file not shown.
Binary file removed esim/lpac/linux-amd64/libes9pinterface_curl.so
Binary file not shown.
Binary file added esim/lpac/linux-amd64/libhttpinterface_curl.so
Binary file not shown.
Binary file not shown.
Binary file modified esim/lpac/linux-amd64/lpac
Binary file not shown.
Binary file modified esim/lpac/linux-arm64/libapduinterface_at.so
Binary file not shown.
Binary file modified esim/lpac/linux-arm64/libapduinterface_pcsc.so
Binary file not shown.
Binary file not shown.
Binary file added esim/lpac/linux-arm64/libhttpinterface_curl.so
Binary file not shown.
Binary file added esim/lpac/linux-arm64/libhttpinterface_stdio.so
Binary file not shown.
Binary file modified esim/lpac/linux-arm64/lpac
Binary file not shown.

0 comments on commit b6aa2ad

Please sign in to comment.