Sync with latest libmutton development version

This commit is contained in:
2026-02-08 00:36:17 -05:00
parent 5025597df5
commit 1564de51d0
6 changed files with 20 additions and 57 deletions
+17
View File
@@ -0,0 +1,17 @@
package main
// #include <stdlib.h>
// #include "types.h"
import "C"
import (
"unsafe"
"github.com/rwinkhart/libmutton/privkey"
)
// SetPrivKeyBytes forces libmutton to use custom bytes for the SSH private key.
//
//export SetPrivKeyBytes
func SetPrivKeyBytes(privKeyPascal C.PascalString) {
privkey.SetBytes(C.GoBytes(unsafe.Pointer(privKeyPascal.data), privKeyPascal.len))
}