mirror of
https://github.com/rwinkhart/cmutton.git
synced 2026-10-28 22:58:15 -04:00
Sync with latest libmutton development version
This commit is contained in:
1 parent
5025597df5
commit
1564de51d0
6 files changed
+20
-57
No files matched your search
+17
@@ -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))
|
||||
}
|
||||
Reference in new issue
Block a user