diff --git a/esim/esim.go b/esim/esim.go index ab9bb5e..f3c5e7b 100644 --- a/esim/esim.go +++ b/esim/esim.go @@ -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 diff --git a/esim/lpac/linux-amd64/libapduinterface_at.so b/esim/lpac/linux-amd64/libapduinterface_at.so index 25ccdd4..e2f5f97 100644 Binary files a/esim/lpac/linux-amd64/libapduinterface_at.so and b/esim/lpac/linux-amd64/libapduinterface_at.so differ diff --git a/esim/lpac/linux-amd64/libapduinterface_pcsc.so b/esim/lpac/linux-amd64/libapduinterface_pcsc.so index cffc6d5..39a4a55 100644 Binary files a/esim/lpac/linux-amd64/libapduinterface_pcsc.so and b/esim/lpac/linux-amd64/libapduinterface_pcsc.so differ diff --git a/esim/lpac/linux-amd64/libapduinterface_stdio.so b/esim/lpac/linux-amd64/libapduinterface_stdio.so new file mode 100755 index 0000000..bd5fa75 Binary files /dev/null and b/esim/lpac/linux-amd64/libapduinterface_stdio.so differ diff --git a/esim/lpac/linux-amd64/libes9pinterface_curl.so b/esim/lpac/linux-amd64/libes9pinterface_curl.so deleted file mode 100644 index 271799e..0000000 Binary files a/esim/lpac/linux-amd64/libes9pinterface_curl.so and /dev/null differ diff --git a/esim/lpac/linux-amd64/libhttpinterface_curl.so b/esim/lpac/linux-amd64/libhttpinterface_curl.so new file mode 100755 index 0000000..a41ceb8 Binary files /dev/null and b/esim/lpac/linux-amd64/libhttpinterface_curl.so differ diff --git a/esim/lpac/linux-amd64/libhttpinterface_stdio.so b/esim/lpac/linux-amd64/libhttpinterface_stdio.so new file mode 100755 index 0000000..a670de0 Binary files /dev/null and b/esim/lpac/linux-amd64/libhttpinterface_stdio.so differ diff --git a/esim/lpac/linux-amd64/lpac b/esim/lpac/linux-amd64/lpac index f0107e6..36ca69b 100755 Binary files a/esim/lpac/linux-amd64/lpac and b/esim/lpac/linux-amd64/lpac differ diff --git a/esim/lpac/linux-arm64/libapduinterface_at.so b/esim/lpac/linux-arm64/libapduinterface_at.so index 2f3f9f5..78384c7 100644 Binary files a/esim/lpac/linux-arm64/libapduinterface_at.so and b/esim/lpac/linux-arm64/libapduinterface_at.so differ diff --git a/esim/lpac/linux-arm64/libapduinterface_pcsc.so b/esim/lpac/linux-arm64/libapduinterface_pcsc.so index c857b0d..eeefbc8 100644 Binary files a/esim/lpac/linux-arm64/libapduinterface_pcsc.so and b/esim/lpac/linux-arm64/libapduinterface_pcsc.so differ diff --git a/esim/lpac/linux-arm64/libes9pinterface_curl.so b/esim/lpac/linux-arm64/libapduinterface_stdio.so similarity index 85% rename from esim/lpac/linux-arm64/libes9pinterface_curl.so rename to esim/lpac/linux-arm64/libapduinterface_stdio.so index b5dd86c..be4e393 100644 Binary files a/esim/lpac/linux-arm64/libes9pinterface_curl.so and b/esim/lpac/linux-arm64/libapduinterface_stdio.so differ diff --git a/esim/lpac/linux-arm64/libhttpinterface_curl.so b/esim/lpac/linux-arm64/libhttpinterface_curl.so new file mode 100644 index 0000000..ce6d345 Binary files /dev/null and b/esim/lpac/linux-arm64/libhttpinterface_curl.so differ diff --git a/esim/lpac/linux-arm64/libhttpinterface_stdio.so b/esim/lpac/linux-arm64/libhttpinterface_stdio.so new file mode 100644 index 0000000..218955d Binary files /dev/null and b/esim/lpac/linux-arm64/libhttpinterface_stdio.so differ diff --git a/esim/lpac/linux-arm64/lpac b/esim/lpac/linux-arm64/lpac index f122575..ba35a09 100644 Binary files a/esim/lpac/linux-arm64/lpac and b/esim/lpac/linux-arm64/lpac differ