summaryrefslogtreecommitdiff
path: root/lib/ZSendNot.c
diff options
context:
space:
mode:
authorGravatar John Kohl <jtkohl@mit.edu>1988-06-15 16:48:32 +0000
committerGravatar John Kohl <jtkohl@mit.edu>1988-06-15 16:48:32 +0000
commit3d1faed5ec0635c44b1f698067182ba8fe082739 (patch)
tree38d41a702254f3aecb7b3aa7864caaba0fca8db3 /lib/ZSendNot.c
parent0fa6b8154ed03eb0a7168a24a17fa4e206a2e5f9 (diff)
parameterize Z_SendFragmentedNotice and add ZSrvSendNotice
Diffstat (limited to 'lib/ZSendNot.c')
-rw-r--r--lib/ZSendNot.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/ZSendNot.c b/lib/ZSendNot.c
index 8147982..e5fb1a3 100644
--- a/lib/ZSendNot.c
+++ b/lib/ZSendNot.c
@@ -24,6 +24,14 @@ Code_t ZSendNotice(notice, cert_routine)
ZNotice_t *notice;
int (*cert_routine)();
{
+ return(ZSrvSendNotice(notice, cert_routine, Z_XmitFragment));
+}
+
+Code_t ZSrvSendNotice(notice, cert_routine, send_routine)
+ ZNotice_t *notice;
+ int (*cert_routine)();
+ int (*send_routine)();
+{
Code_t retval;
ZNotice_t newnotice;
char *buffer;
@@ -36,7 +44,7 @@ Code_t ZSendNotice(notice, cert_routine)
if ((retval = ZParseNotice(buffer, len, &newnotice)) != ZERR_NONE)
return (retval);
- retval = Z_SendFragmentedNotice(&newnotice, len);
+ retval = Z_SendFragmentedNotice(&newnotice, len, send_routine);
free(buffer);