Displaying 1 result from an estimated 1 matches for "server_match_spec_complet".
Did you mean:
server_match_spec_complete
2012 May 17
2
New Subsystem criteria for Match option block in OpenSSH server
...m = xstrdup(p + 10);
> else {
> fprintf(stderr, "Invalid test mode specification %s\n", p);
> return -1;
> }
> }
> return 0;
> }
>
> /*
> * returns 1 for a complete spec, 0 for partial spec and -1 for an
> * empty spec.
> */
> int
> server_match_spec_complete(ConnectionInfo *ci)
> {
> if (ci->user && ci->host && ci->address)
> return 1; /* complete */
> if (!ci->user && !ci->host && !ci->address)
> return -1; /* empty */
> return 0; /* partial */
> }
>
1537c1610
< c...