Allow mapping using heim_octet_string.
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@20170 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -34,6 +34,27 @@
|
|||||||
#include "hx_locl.h"
|
#include "hx_locl.h"
|
||||||
RCSID("$ID$");
|
RCSID("$ID$");
|
||||||
|
|
||||||
|
int
|
||||||
|
_hx509_map_file_os(const char *fn, heim_octet_string *os, struct stat *rsb)
|
||||||
|
{
|
||||||
|
size_t length;
|
||||||
|
void *data;
|
||||||
|
int ret;
|
||||||
|
|
||||||
|
ret = _hx509_map_file(fn, &data, &length, rsb);
|
||||||
|
|
||||||
|
os->data = data;
|
||||||
|
os->length = length;
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
_hx509_unmap_file_os(heim_octet_string *os)
|
||||||
|
{
|
||||||
|
_hx509_unmap_file(os->data, os->length);
|
||||||
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
_hx509_map_file(const char *fn, void **data, size_t *length, struct stat *rsb)
|
_hx509_map_file(const char *fn, void **data, size_t *length, struct stat *rsb)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user