Back to index

courier  0.68.2
comsecurity.c
Go to the documentation of this file.
00001 /*
00002 ** Copyright 2001 Double Precision, Inc.
00003 ** See COPYING for distribution information.
00004 */
00005 
00006 #include      "courier_lib_config.h"
00007 #include      "courier.h"
00008 #include      "comctlfile.h"
00009 #include      <sys/types.h>
00010 #include      <stdlib.h>
00011 #include      <string.h>
00012 #include      <errno.h>
00013 
00014 
00015 const char *ctlfile_security(struct ctlfile *p)
00016 {
00017        int i=ctlfile_searchfirst(p, COMCTLFILE_SECURITY);
00018 
00019        return (i < 0 ? "":p->lines[i]+1);
00020 }