summaryrefslogtreecommitdiff
path: root/exports
diff options
context:
space:
mode:
Diffstat (limited to 'exports')
-rw-r--r--exports/exports.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/exports/exports.go b/exports/exports.go
index aa6f5b6..d81f1ce 100644
--- a/exports/exports.go
+++ b/exports/exports.go
@@ -53,6 +53,14 @@ func ErrorToString(error error) string {
return error.Error()
}
+//export CancelOAuth
+func CancelOAuth() (*C.char) {
+ state := eduvpn.GetVPNState()
+ cancelErr := state.CancelOAuth()
+ cancelErrString := ErrorToString(cancelErr)
+ return C.CString(cancelErrString)
+}
+
//export Connect
func Connect(url *C.char) (*C.char, *C.char) {
state := eduvpn.GetVPNState()