chiark
/
gitweb
/
~ianmdlvl
/
secnet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test-example: Use subdirmk's new &:macro feature
[secnet.git]
/
util.c
diff --git
a/util.c
b/util.c
index cc2f9fa6b17f2ce43fe0cf5760ed550ed0d1f040..3e8d56eaebbc50855ed2cde7026b5bf5be7c0767 100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-183,15
+183,6
@@
char *write_mpstring(MP_INT *a)
return buff;
}
return buff;
}
-int32_t write_mpbin(MP_INT *a, uint8_t *buffer, int32_t buflen)
-{
- char *hb = write_mpstring(a);
- int32_t len;
- hex_decode(buffer, buflen, &len, hb, True);
- free(hb);
- return len;
-}
-
#define DEFINE_SETFDFLAG(fn,FL,FLAG) \
void fn(int fd) { \
int r=fcntl(fd, F_GET##FL); \
#define DEFINE_SETFDFLAG(fn,FL,FLAG) \
void fn(int fd) { \
int r=fcntl(fd, F_GET##FL); \