mirror of
https://github.com/rwinkhart/cmutton.git
synced 2026-09-05 08:37:33 -04:00
Sync with latest libmutton development version
This commit is contained in:
+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