fixed a bunch of compiler warnings, pgp end certificate listing
[strongswan.git] / src / pluto / plutomain.c
1 /* Pluto main program
2 * Copyright (C) 1997 Angelos D. Keromytis.
3 * Copyright (C) 1998-2001 D. Hugh Redelmeier.
4 * Copyright (C) 2009 Andreas Steffen
5 *
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License as published by the
8 * Free Software Foundation; either version 2 of the License, or (at your
9 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 *
11 * This program is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
13 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * for more details.
15 *
16 * RCSID $Id$
17 */
18
19 #include <stdio.h>
20 #include <stdlib.h>
21 #include <unistd.h>
22 #include <ctype.h>
23 #include <errno.h>
24 #include <string.h>
25 #include <sys/types.h>
26 #include <sys/stat.h>
27 #include <sys/un.h>
28 #include <fcntl.h>
29 #include <getopt.h>
30 #include <resolv.h>
31 #include <arpa/nameser.h> /* missing from <resolv.h> on old systems */
32 #include <sys/queue.h>
33 #include <sys/prctl.h>
34 #include <pwd.h>
35 #include <grp.h>
36
37 #ifdef CAPABILITIES
38 #include <sys/capability.h>
39 #endif /* CAPABILITIES */
40
41 #include <freeswan.h>
42 #include <library.h>
43
44 #include <pfkeyv2.h>
45 #include <pfkey.h>
46
47 #include "constants.h"
48 #include "defs.h"
49 #include "id.h"
50 #include "ca.h"
51 #include "certs.h"
52 #include "ac.h"
53 #include "connections.h"
54 #include "foodgroups.h"
55 #include "packet.h"
56 #include "demux.h" /* needs packet.h */
57 #include "server.h"
58 #include "kernel.h"
59 #include "log.h"
60 #include "keys.h"
61 #include "adns.h" /* needs <resolv.h> */
62 #include "dnskey.h" /* needs keys.h and adns.h */
63 #include "rnd.h"
64 #include "state.h"
65 #include "ipsec_doi.h" /* needs demux.h and state.h */
66 #include "ocsp.h"
67 #include "crl.h"
68 #include "fetch.h"
69 #include "xauth.h"
70 #include "sha1.h"
71 #include "md5.h"
72 #include "crypto.h" /* requires sha1.h and md5.h */
73 #include "nat_traversal.h"
74 #include "virtual.h"
75 #include "timer.h"
76
77 static void usage(const char *mess)
78 {
79 if (mess != NULL && *mess != '\0')
80 fprintf(stderr, "%s\n", mess);
81 fprintf(stderr
82 , "Usage: pluto"
83 " [--help]"
84 " [--version]"
85 " [--optionsfrom <filename>]"
86 " \\\n\t"
87 "[--nofork]"
88 " [--stderrlog]"
89 " [--noklips]"
90 " [--nocrsend]"
91 " \\\n\t"
92 "[--strictcrlpolicy]"
93 " [--crlcheckinterval <interval>]"
94 " [--cachecrls]"
95 " [--uniqueids]"
96 " \\\n\t"
97 "[--interface <ifname>]"
98 " [--ikeport <port-number>]"
99 " \\\n\t"
100 "[--ctlbase <path>]"
101 " \\\n\t"
102 "[--perpeerlogbase <path>] [--perpeerlog]"
103 " \\\n\t"
104 "[--secretsfile <secrets-file>]"
105 " [--policygroupsdir <policygroups-dir>]"
106 " \\\n\t"
107 "[--adns <pathname>]"
108 "[--pkcs11module <path>]"
109 "[--pkcs11keepstate]"
110 "[--pkcs11initargs <string>]"
111 #ifdef DEBUG
112 " \\\n\t"
113 "[--debug-none]"
114 " [--debug-all]"
115 " \\\n\t"
116 "[--debug-raw]"
117 " [--debug-crypt]"
118 " [--debug-parsing]"
119 " [--debug-emitting]"
120 " \\\n\t"
121 "[--debug-control]"
122 " [--debug-lifecycle]"
123 " [--debug-klips]"
124 " [--debug-dns]"
125 " \\\n\t"
126 "[--debug-oppo]"
127 " [--debug-controlmore]"
128 " [--debug-private]"
129 " [--debug-natt]"
130 #endif
131 " \\\n\t"
132 "[--nat_traversal] [--keep_alive <delay_sec>]"
133 " \\\n\t"
134 "[--force_keepalive] [--disable_port_floating]"
135 " \\\n\t"
136 "[--virtual_private <network_list>]"
137 "\n"
138 "strongSwan %s\n"
139 , ipsec_version_code());
140 exit_pluto(mess == NULL? 0 : 1);
141 }
142
143
144 /* lock file support
145 * - provides convenient way for scripts to find Pluto's pid
146 * - prevents multiple Plutos competing for the same port
147 * - same basename as unix domain control socket
148 * NOTE: will not take account of sharing LOCK_DIR with other systems.
149 */
150
151 static char pluto_lock[sizeof(ctl_addr.sun_path)] = DEFAULT_CTLBASE LOCK_SUFFIX;
152 static bool pluto_lock_created = FALSE;
153
154 /* create lockfile, or die in the attempt */
155 static int create_lock(void)
156 {
157 int fd = open(pluto_lock, O_WRONLY | O_CREAT | O_EXCL | O_TRUNC
158 , S_IRUSR | S_IRGRP | S_IROTH);
159
160 if (fd < 0)
161 {
162 if (errno == EEXIST)
163 {
164 fprintf(stderr, "pluto: lock file \"%s\" already exists\n"
165 , pluto_lock);
166 exit_pluto(10);
167 }
168 else
169 {
170 fprintf(stderr
171 , "pluto: unable to create lock file \"%s\" (%d %s)\n"
172 , pluto_lock, errno, strerror(errno));
173 exit_pluto(1);
174 }
175 }
176 pluto_lock_created = TRUE;
177 return fd;
178 }
179
180 static bool fill_lock(int lockfd, pid_t pid)
181 {
182 char buf[30]; /* holds "<pid>\n" */
183 int len = snprintf(buf, sizeof(buf), "%u\n", (unsigned int) pid);
184 bool ok = len > 0 && write(lockfd, buf, len) == len;
185
186 close(lockfd);
187 return ok;
188 }
189
190 static void delete_lock(void)
191 {
192 if (pluto_lock_created)
193 {
194 delete_ctl_socket();
195 unlink(pluto_lock); /* is noting failure useful? */
196 }
197 }
198
199
200 /* by default pluto sends certificate requests to its peers */
201 bool no_cr_send = FALSE;
202
203 /* by default the CRL policy is lenient */
204 bool strict_crl_policy = FALSE;
205
206 /* by default CRLs are cached locally as files */
207 bool cache_crls = FALSE;
208
209 /* by default pluto does not check crls dynamically */
210 long crl_check_interval = 0;
211
212 /* path to the PKCS#11 module */
213 char *pkcs11_module_path = NULL;
214
215 /* by default pluto logs out after every smartcard use */
216 bool pkcs11_keep_state = FALSE;
217
218 /* by default pluto does not allow pkcs11 proxy access via whack */
219 bool pkcs11_proxy = FALSE;
220
221 /* argument string to pass to PKCS#11 module.
222 * Not used for compliant modules, just for NSS softoken
223 */
224 static const char *pkcs11_init_args = NULL;
225
226 int main(int argc, char **argv)
227 {
228 bool fork_desired = TRUE;
229 bool log_to_stderr_desired = FALSE;
230 bool nat_traversal = FALSE;
231 bool nat_t_spf = TRUE; /* support port floating */
232 unsigned int keep_alive = 0;
233 bool force_keepalive = FALSE;
234 char *virtual_private = NULL;
235 int lockfd;
236 #ifdef CAPABILITIES
237 cap_t caps;
238 int keep[] = { CAP_NET_ADMIN, CAP_NET_BIND_SERVICE };
239 #endif /* CAPABILITIES */
240
241 library_init(STRONGSWAN_CONF);
242
243 /* handle arguments */
244 for (;;)
245 {
246 # define DBG_OFFSET 256
247 static const struct option long_opts[] = {
248 /* name, has_arg, flag, val */
249 { "help", no_argument, NULL, 'h' },
250 { "version", no_argument, NULL, 'v' },
251 { "optionsfrom", required_argument, NULL, '+' },
252 { "nofork", no_argument, NULL, 'd' },
253 { "stderrlog", no_argument, NULL, 'e' },
254 { "noklips", no_argument, NULL, 'n' },
255 { "nocrsend", no_argument, NULL, 'c' },
256 { "strictcrlpolicy", no_argument, NULL, 'r' },
257 { "crlcheckinterval", required_argument, NULL, 'x'},
258 { "cachecrls", no_argument, NULL, 'C' },
259 { "uniqueids", no_argument, NULL, 'u' },
260 { "interface", required_argument, NULL, 'i' },
261 { "ikeport", required_argument, NULL, 'p' },
262 { "ctlbase", required_argument, NULL, 'b' },
263 { "secretsfile", required_argument, NULL, 's' },
264 { "foodgroupsdir", required_argument, NULL, 'f' },
265 { "perpeerlogbase", required_argument, NULL, 'P' },
266 { "perpeerlog", no_argument, NULL, 'l' },
267 { "policygroupsdir", required_argument, NULL, 'f' },
268 #ifdef USE_LWRES
269 { "lwdnsq", required_argument, NULL, 'a' },
270 #else /* !USE_LWRES */
271 { "adns", required_argument, NULL, 'a' },
272 #endif /* !USE_LWRES */
273 { "pkcs11module", required_argument, NULL, 'm' },
274 { "pkcs11keepstate", no_argument, NULL, 'k' },
275 { "pkcs11initargs", required_argument, NULL, 'z' },
276 { "pkcs11proxy", no_argument, NULL, 'y' },
277 { "nat_traversal", no_argument, NULL, '1' },
278 { "keep_alive", required_argument, NULL, '2' },
279 { "force_keepalive", no_argument, NULL, '3' },
280 { "disable_port_floating", no_argument, NULL, '4' },
281 { "debug-natt", no_argument, NULL, '5' },
282 { "virtual_private", required_argument, NULL, '6' },
283 #ifdef DEBUG
284 { "debug-none", no_argument, NULL, 'N' },
285 { "debug-all", no_argument, NULL, 'A' },
286 { "debug-raw", no_argument, NULL, DBG_RAW + DBG_OFFSET },
287 { "debug-crypt", no_argument, NULL, DBG_CRYPT + DBG_OFFSET },
288 { "debug-parsing", no_argument, NULL, DBG_PARSING + DBG_OFFSET },
289 { "debug-emitting", no_argument, NULL, DBG_EMITTING + DBG_OFFSET },
290 { "debug-control", no_argument, NULL, DBG_CONTROL + DBG_OFFSET },
291 { "debug-lifecycle", no_argument, NULL, DBG_LIFECYCLE + DBG_OFFSET },
292 { "debug-klips", no_argument, NULL, DBG_KLIPS + DBG_OFFSET },
293 { "debug-dns", no_argument, NULL, DBG_DNS + DBG_OFFSET },
294 { "debug-oppo", no_argument, NULL, DBG_OPPO + DBG_OFFSET },
295 { "debug-controlmore", no_argument, NULL, DBG_CONTROLMORE + DBG_OFFSET },
296 { "debug-private", no_argument, NULL, DBG_PRIVATE + DBG_OFFSET },
297
298 { "impair-delay-adns-key-answer", no_argument, NULL, IMPAIR_DELAY_ADNS_KEY_ANSWER + DBG_OFFSET },
299 { "impair-delay-adns-txt-answer", no_argument, NULL, IMPAIR_DELAY_ADNS_TXT_ANSWER + DBG_OFFSET },
300 { "impair-bust-mi2", no_argument, NULL, IMPAIR_BUST_MI2 + DBG_OFFSET },
301 { "impair-bust-mr2", no_argument, NULL, IMPAIR_BUST_MR2 + DBG_OFFSET },
302 #endif
303 { 0,0,0,0 }
304 };
305 /* Note: we don't like the way short options get parsed
306 * by getopt_long, so we simply pass an empty string as
307 * the list. It could be "hvdenp:l:s:" "NARXPECK".
308 */
309 int c = getopt_long(argc, argv, "", long_opts, NULL);
310
311 /* Note: "breaking" from case terminates loop */
312 switch (c)
313 {
314 case EOF: /* end of flags */
315 break;
316
317 case 0: /* long option already handled */
318 continue;
319
320 case ':': /* diagnostic already printed by getopt_long */
321 case '?': /* diagnostic already printed by getopt_long */
322 usage("");
323 break; /* not actually reached */
324
325 case 'h': /* --help */
326 usage(NULL);
327 break; /* not actually reached */
328
329 case 'v': /* --version */
330 {
331 const char **sp = ipsec_copyright_notice();
332
333 printf("%s%s\n", ipsec_version_string(),
334 compile_time_interop_options);
335 for (; *sp != NULL; sp++)
336 puts(*sp);
337 }
338 exit_pluto(0);
339 break; /* not actually reached */
340
341 case '+': /* --optionsfrom <filename> */
342 optionsfrom(optarg, &argc, &argv, optind, stderr);
343 /* does not return on error */
344 continue;
345
346 case 'd': /* --nofork*/
347 fork_desired = FALSE;
348 continue;
349
350 case 'e': /* --stderrlog */
351 log_to_stderr_desired = TRUE;
352 continue;
353
354 case 'n': /* --noklips */
355 no_klips = TRUE;
356 continue;
357
358 case 'c': /* --nocrsend */
359 no_cr_send = TRUE;
360 continue;
361
362 case 'r': /* --strictcrlpolicy */
363 strict_crl_policy = TRUE;
364 continue;
365
366 case 'x': /* --crlcheckinterval <time>*/
367 if (optarg == NULL || !isdigit(optarg[0]))
368 usage("missing interval time");
369
370 {
371 char *endptr;
372 long interval = strtol(optarg, &endptr, 0);
373
374 if (*endptr != '\0' || endptr == optarg
375 || interval <= 0)
376 usage("<interval-time> must be a positive number");
377 crl_check_interval = interval;
378 }
379 continue;
380
381 case 'C': /* --cachecrls */
382 cache_crls = TRUE;
383 continue;
384
385 case 'u': /* --uniqueids */
386 uniqueIDs = TRUE;
387 continue;
388
389 case 'i': /* --interface <ifname> */
390 if (!use_interface(optarg))
391 usage("too many --interface specifications");
392 continue;
393
394 case 'p': /* --port <portnumber> */
395 if (optarg == NULL || !isdigit(optarg[0]))
396 usage("missing port number");
397
398 {
399 char *endptr;
400 long port = strtol(optarg, &endptr, 0);
401
402 if (*endptr != '\0' || endptr == optarg
403 || port <= 0 || port > 0x10000)
404 usage("<port-number> must be a number between 1 and 65535");
405 pluto_port = port;
406 }
407 continue;
408
409 case 'b': /* --ctlbase <path> */
410 if (snprintf(ctl_addr.sun_path, sizeof(ctl_addr.sun_path)
411 , "%s%s", optarg, CTL_SUFFIX) == -1)
412 usage("<path>" CTL_SUFFIX " too long for sun_path");
413 if (snprintf(info_addr.sun_path, sizeof(info_addr.sun_path)
414 , "%s%s", optarg, INFO_SUFFIX) == -1)
415 usage("<path>" INFO_SUFFIX " too long for sun_path");
416 if (snprintf(pluto_lock, sizeof(pluto_lock)
417 , "%s%s", optarg, LOCK_SUFFIX) == -1)
418 usage("<path>" LOCK_SUFFIX " must fit");
419 continue;
420
421 case 's': /* --secretsfile <secrets-file> */
422 shared_secrets_file = optarg;
423 continue;
424
425 case 'f': /* --policygroupsdir <policygroups-dir> */
426 policygroups_dir = optarg;
427 continue;
428
429 case 'a': /* --adns <pathname> */
430 pluto_adns_option = optarg;
431 continue;
432
433 case 'm': /* --pkcs11module <pathname> */
434 pkcs11_module_path = optarg;
435 continue;
436
437 case 'k': /* --pkcs11keepstate */
438 pkcs11_keep_state = TRUE;
439 continue;
440
441 case 'y': /* --pkcs11proxy */
442 pkcs11_proxy = TRUE;
443 continue;
444
445 case 'z': /* --pkcs11initargs */
446 pkcs11_init_args = optarg;
447 continue;
448
449 #ifdef DEBUG
450 case 'N': /* --debug-none */
451 base_debugging = DBG_NONE;
452 continue;
453
454 case 'A': /* --debug-all */
455 base_debugging = DBG_ALL;
456 continue;
457 #endif
458
459 case 'P': /* --perpeerlogbase */
460 base_perpeer_logdir = optarg;
461 continue;
462
463 case 'l':
464 log_to_perpeer = TRUE;
465 continue;
466
467 case '1': /* --nat_traversal */
468 nat_traversal = TRUE;
469 continue;
470 case '2': /* --keep_alive */
471 keep_alive = atoi(optarg);
472 continue;
473 case '3': /* --force_keepalive */
474 force_keepalive = TRUE;
475 continue;
476 case '4': /* --disable_port_floating */
477 nat_t_spf = FALSE;
478 continue;
479 case '5': /* --debug-nat_t */
480 base_debugging |= DBG_NATT;
481 continue;
482 case '6': /* --virtual_private */
483 virtual_private = optarg;
484 continue;
485
486 default:
487 #ifdef DEBUG
488 if (c >= DBG_OFFSET)
489 {
490 base_debugging |= c - DBG_OFFSET;
491 continue;
492 }
493 # undef DBG_OFFSET
494 #endif
495 bad_case(c);
496 }
497 break;
498 }
499 if (optind != argc)
500 usage("unexpected argument");
501 reset_debugging();
502 lockfd = create_lock();
503
504 /* select between logging methods */
505
506 if (log_to_stderr_desired)
507 {
508 log_to_syslog = FALSE;
509 }
510 else
511 {
512 log_to_stderr = FALSE;
513 }
514
515 /* set the logging function of pfkey debugging */
516 #ifdef DEBUG
517 pfkey_debug_func = DBG_log;
518 #else
519 pfkey_debug_func = NULL;
520 #endif
521
522 /* create control socket.
523 * We must create it before the parent process returns so that
524 * there will be no race condition in using it. The easiest
525 * place to do this is before the daemon fork.
526 */
527 {
528 err_t ugh = init_ctl_socket();
529
530 if (ugh != NULL)
531 {
532 fprintf(stderr, "pluto: %s", ugh);
533 exit_pluto(1);
534 }
535 }
536
537 /* If not suppressed, do daemon fork */
538
539 if (fork_desired)
540 {
541 {
542 pid_t pid = fork();
543
544 if (pid < 0)
545 {
546 int e = errno;
547
548 fprintf(stderr, "pluto: fork failed (%d %s)\n",
549 errno, strerror(e));
550 exit_pluto(1);
551 }
552
553 if (pid != 0)
554 {
555 /* parent: die, after filling PID into lock file.
556 * must not use exit_pluto: lock would be removed!
557 */
558 exit(fill_lock(lockfd, pid)? 0 : 1);
559 }
560 }
561
562 if (setsid() < 0)
563 {
564 int e = errno;
565
566 fprintf(stderr, "setsid() failed in main(). Errno %d: %s\n",
567 errno, strerror(e));
568 exit_pluto(1);
569 }
570 }
571 else
572 {
573 /* no daemon fork: we have to fill in lock file */
574 (void) fill_lock(lockfd, getpid());
575 fprintf(stdout, "Pluto initialized\n");
576 fflush(stdout);
577 }
578
579 /* Close everything but ctl_fd and (if needed) stderr.
580 * There is some danger that a library that we don't know
581 * about is using some fd that we don't know about.
582 * I guess we'll soon find out.
583 */
584 {
585 int i;
586
587 for (i = getdtablesize() - 1; i >= 0; i--) /* Bad hack */
588 {
589 if ((!log_to_stderr || i != 2) && i != ctl_fd)
590 close(i);
591 }
592
593 /* make sure that stdin, stdout, stderr are reserved */
594 if (open("/dev/null", O_RDONLY) != 0)
595 abort();
596 if (dup2(0, 1) != 1)
597 abort();
598 if (!log_to_stderr && dup2(0, 2) != 2)
599 abort();
600 }
601
602 init_constants();
603 init_log("pluto");
604
605 /* Note: some scripts may look for this exact message -- don't change
606 * ipsec barf was one, but it no longer does.
607 */
608 plog("Starting Pluto (strongSwan Version %s%s)"
609 , ipsec_version_code()
610 , compile_time_interop_options);
611
612 init_nat_traversal(nat_traversal, keep_alive, force_keepalive, nat_t_spf);
613 init_virtual_ip(virtual_private);
614 scx_init(pkcs11_module_path, pkcs11_init_args); /* load and initialize PKCS #11 module */
615 xauth_init(); /* load and initialize XAUTH module */
616 init_rnd_pool();
617 init_secret();
618 init_states();
619 init_crypto();
620 init_demux();
621 init_kernel();
622 init_adns();
623 init_id();
624 init_fetch();
625
626 /* drop unneeded capabilities and change UID/GID */
627 prctl(PR_SET_KEEPCAPS, 1);
628
629 #ifdef IPSEC_GROUP
630 {
631 struct group group, *grp;
632 char buf[1024];
633
634 if (getgrnam_r(IPSEC_GROUP, &group, buf, sizeof(buf), &grp) != 0 ||
635 grp == NULL || setgid(grp->gr_gid) != 0)
636 {
637 plog("unable to change daemon group");
638 abort();
639 }
640 }
641 #endif
642 #ifdef IPSEC_USER
643 {
644 struct passwd passwd, *pwp;
645 char buf[1024];
646
647 if (getpwnam_r(IPSEC_USER, &passwd, buf, sizeof(buf), &pwp) != 0 ||
648 pwp == NULL || setuid(pwp->pw_uid) != 0)
649 {
650 plog("unable to change daemon user");
651 abort();
652 }
653 }
654 #endif
655
656 #ifdef CAPABILITIES
657 caps = cap_init();
658 cap_set_flag(caps, CAP_EFFECTIVE, 2, keep, CAP_SET);
659 cap_set_flag(caps, CAP_INHERITABLE, 2, keep, CAP_SET);
660 cap_set_flag(caps, CAP_PERMITTED, 2, keep, CAP_SET);
661 if (cap_set_proc(caps) != 0)
662 {
663 plog("unable to drop daemon capabilities");
664 abort();
665 }
666 cap_free(caps);
667 #endif /* CAPABILITIES */
668
669 /* loading X.509 CA certificates */
670 load_authcerts("CA cert", CA_CERT_PATH, AUTH_CA);
671 /* loading X.509 AA certificates */
672 load_authcerts("AA cert", AA_CERT_PATH, AUTH_AA);
673 /* loading X.509 OCSP certificates */
674 load_authcerts("OCSP cert", OCSP_CERT_PATH, AUTH_OCSP);
675 /* loading X.509 CRLs */
676 load_crls();
677 /* loading attribute certificates (experimental) */
678 load_acerts();
679
680 daily_log_event();
681 call_server();
682 return -1; /* Shouldn't ever reach this */
683 }
684
685 /* leave pluto, with status.
686 * Once child is launched, parent must not exit this way because
687 * the lock would be released.
688 *
689 * 0 OK
690 * 1 general discomfort
691 * 10 lock file exists
692 */
693 void
694 exit_pluto(int status)
695 {
696 reset_globals(); /* needed because we may be called in odd state */
697 free_preshared_secrets();
698 free_remembered_public_keys();
699 delete_every_connection();
700 free_crl_fetch(); /* free chain of crl fetch requests */
701 free_ocsp_fetch(); /* free chain of ocsp fetch requests */
702 free_authcerts(); /* free chain of X.509 authority certificates */
703 free_crls(); /* free chain of X.509 CRLs */
704 free_acerts(); /* free chain of X.509 attribute certificates */
705 free_ca_infos(); /* free chain of X.509 CA information records */
706 free_ocsp(); /* free ocsp cache */
707 free_ifaces();
708 scx_finalize(); /* finalize and unload PKCS #11 module */
709 xauth_finalize(); /* finalize and unload XAUTH module */
710 stop_adns();
711 free_md_pool();
712 free_crypto();
713 free_id(); /* free myids */
714 free_events(); /* free remaining events */
715 delete_lock();
716 library_deinit();
717 close_log();
718 exit(status);
719 }
720
721 /*
722 * Local Variables:
723 * c-basic-offset:4
724 * c-style: pluto
725 * End:
726 */