Commits
- Commit:
4ad11931ec10c823e98b7c51efc7146d8cbdd012
- From:
- Omar Polo <op@omarpolo.com>
- Date:
update README
- Commit:
6214c12719b8451fc60127d2b932c59050c160d4
- From:
- Omar Polo <op@omarpolo.com>
- Date:
added sample configuration
- Commit:
e4d82becb71b1b8f9c843a5f0f8657bc6b93c67b
- From:
- Omar Polo <op@omarpolo.com>
- Date:
normalize host name when parsing the IRI
RFC3986 3.2.2 "Host" says that
> Although host is case-insensitive, producers and normalizers should
> use lowercase for registered names and hexadecimal addresses for the
> sake of uniformity, while only using uppercase letters for
> percent-encodings.
so we cope with that.
- Commit:
15902770073dd67df3a9af0f6da7d63bfb031d72
- From:
- Omar Polo <op@omarpolo.com>
- Date:
conf & vhosts
* gmid.c (main): changed behaviour: daemon off by default
(main): changed -c in -C (cert option)
(main): changed -k in -K (key option, for consistency with -C)
(main): added -c to load a configuration
(main): certs, key and doc (-C -K and -d) doesn't have a default value anymore
(handle_handshake): add vhosts support
- Commit:
4d2ec6d7054c76105c6237251002df1acb5a6c2d
- From:
- Omar Polo <op@omarpolo.com>
- Date:
typo
- Commit:
9939ddcf9d765c98ae527d75627441c50ac7e4bf
- From:
- Omar Polo <op@omarpolo.com>
- Date:
sync changes
- Commit:
de428fff65f1ef1a337a1caafb3d580433c73fc9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
normalize schema when parsing the IRI
RFC3986 in section 3.1 "Scheme" says that
> Although schemes are case-insensitive, the canonical form is
> lowercase and documents that specify schemes must do so with
> lowercase letters. An implementation should accept uppercase
> letters as equivalent to lowercase in scheme names (e.g., allow
> "HTTP" as well as "http") for the sake of robustness but should only
> produce lowercase scheme names for consistency.
so we cope with that. The other possibility would have been to use
strcasecmp instead of strcmp when checking on the protocol, but since
the "case" version, although popular, is not part of any standard
AFAIK I prefer downcasing while parsing and be done with it.
- Commit:
9862b637c2aa97e7e8d148ae9c3f92d0ca758fa7
- From:
- Omar Polo <op@omarpolo.com>
- Date:
track handshakes
This alter the current state machine by adding S_HANDSHAKE as the
initial state. There, we ensure we did the handshake and we check
SNI. ATM we simply continue in S_OPEN, but later we can add virtual
host checks there, and skip to S_INITIALIZING with an error state if
the client is accessing a wrong host.
- Commit:
0d7a38c4ce99cf5367a242d0a1d41b51d4a742e8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
avoid __dead and return at the end of main
- Commit:
796c6e75d72a1fbd8ea1dd6ccaaaa57180eb3865
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix build on non-OpenBSD systems
not every system has a __dead attribute for functions. This fixes the
build on FreeBSD.
- Commit:
7b1d97903280066059ed4b00d4d407876957d071
- From:
- Omar Polo <op@omarpolo.com>
- Date:
reject non-gemini protocols with 53
- Commit:
6a9ae707737d978bccbabdc36beae509151a7be2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
remove infinite loop
- Commit:
3c1cf9d07cb679ba444566159538b510902f2de9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
s/uri/iri since we accept IRIs
- Commit:
28778244d67be7024868a5095e5eedda22a3ed98
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix build
- Commit:
b9220ca4de556f24be9cdc0d478109b75cd476ae
- From:
- Omar Polo <op@omarpolo.com>
- Date:
new README + wording in manpage