3 # Save authentication settings
5 require './heartbeat-lib.pl';
7 &error_setup($text{'auth_err'});
9 $conf = &get_auth_config();
10 $conf->{'auth'} = [ $in{'auth'} ];
12 foreach $k ('crc', 'sha1', 'md5') {
17 $in{'auth'} != $i || $in{$k} =~ /^\S+$/ ||
18 &error($text{"auth_e$k"});
19 $conf->{$i} = [ $k, $in{$k} ];
23 &save_auth_config($conf);