Skip to content

Commit

Permalink
Remove unknown_pts_as_local option (#8/#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcdope committed Feb 13, 2021
1 parent ae04f26 commit f9e90cc
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion doc/CONFIGURATION
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ The syntax is the following:
| `color_log` | Boolean | `true` | Enable colored output |
| `one_time_pad` | Boolean | `true` | Enable the use of one time device-associated pad files |
| `deny_remote` | Boolean | `true` | Deny access from remote host (SSH) |
| `unknown_pts_as_local` | Boolean | `false` | Assume sessions from pseudo terminals to be local if not in utmp |
| `probe_timeout` | Time | `10s` | Time to wait for the volume to be detected |
| `pad_expiration` | Time | `1h` | Time between pad file regeneration |
| `hostname` | String | Computer's hostname | Must be unique accross computers using the same device |
Expand Down
1 change: 0 additions & 1 deletion doc/pam_usb.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ See http://www.pamusb.org/doc/configuring
<!-- Example:
<option name="debug">true</option>
<option name="deny_remote">true</option>
<option name="unknown_pts_as_local">false</option>
-->
</defaults>

Expand Down
3 changes: 0 additions & 3 deletions src/conf.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ static void pusb_conf_options_get_from(t_pusb_options *opts,
&(opts->probe_timeout));
pusb_xpath_get_bool_from(doc, from, "option[@name='deny_remote']",
&(opts->deny_remote));
pusb_xpath_get_bool_from(doc, from, "option[@name='unknown_pts_as_local']",
&(opts->unknown_pts_as_local));
}

static int pusb_conf_parse_options(t_pusb_options *opts,
Expand Down Expand Up @@ -150,7 +148,6 @@ int pusb_conf_init(t_pusb_options *opts)
opts->one_time_pad = 1;
opts->pad_expiration = 3600;
opts->deny_remote = 1;
opts->unknown_pts_as_local = 0;
return (1);
}

Expand Down
1 change: 0 additions & 1 deletion src/conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ typedef struct pusb_options
int one_time_pad;
time_t pad_expiration;
int deny_remote;
int unknown_pts_as_local;
char hostname[64];
char system_pad_directory[PATH_MAX];
char device_pad_directory[PATH_MAX];
Expand Down

0 comments on commit f9e90cc

Please sign in to comment.