"GOT", but the "O" is a cute, smiling pufferfish. Index | Thread | Search

From:
"Omar Polo" <op@omarpolo.com>
Subject:
gotwebd: style fix + tweak for logging page
To:
gameoftrees@openbsd.org
Date:
Tue, 10 Feb 2026 12:52:47 +0100

Download raw body.

Thread
- the owerflow-wrap avoids overflowing horizontally when displaying the
  host keys
- wrap the "log in by running" in a <p>
- wrap the ssh example command in <pre>
- crank up GOTWEBD_MAX_SSHFP so that I can actually put some keys, what
  am I doing wrong?

ok?

diff /home/op/w/got
path + /home/op/w/got
commit - ab88c55bc55c2f1659fd482ce92bbd1223c5113d
blob - 15e6ffef2c615352d5e23d6ef94fe1e37fb9dff1
file + gotwebd/files/htdocs/gotwebd/gotweb.css
--- gotwebd/files/htdocs/gotwebd/gotweb.css
+++ gotwebd/files/htdocs/gotwebd/gotweb.css
@@ -433,6 +433,7 @@ dd {
 
 .clone-url {
 	white-space: pre-wrap;
+	overflow-wrap: break-word;
 }
 
 .commit-msg {
commit - ab88c55bc55c2f1659fd482ce92bbd1223c5113d
blob - f1f75864d29a9d230bb8305b3676479dbe0f5669
file + gotwebd/gotwebd.h
--- gotwebd/gotwebd.h
+++ gotwebd/gotwebd.h
@@ -54,7 +54,7 @@
 #define GOTWEBD_MAXPORT		 6
 #define GOTWEBD_NUMPROC		 3
 #define GOTWEBD_SOCK_FILENO	 3
-#define GOTWEBD_MAX_SSHFP	 64
+#define GOTWEBD_MAX_SSHFP	 1024
 
 #define GOTWEBD_SSHFP_ECDSA	0
 #define GOTWEBD_SSHFP_ED25519	1
commit - ab88c55bc55c2f1659fd482ce92bbd1223c5113d
blob - 70140054bf30861e3c52bc962d3d7623eabb13fd
file + gotwebd/pages.tmpl
--- gotwebd/pages.tmpl
+++ gotwebd/pages.tmpl
@@ -287,13 +287,15 @@ nextsep(char *s, char **t)
 <div id="err_content">
   {{ if t->error }}
     {{ if t->error->code == GOT_ERR_LOGIN_HINT && login_hint_user }}
-      Log in by running: 
+      <p>Log in by running:</p>
+      <pre>
       {{ if login_hint_port }}
 	ssh -p {{ login_hint_port }} {{" "}} {{ login_hint_user }}@{{ srv->name }} {{" "}} "weblogin {{ srv->name }}"
 	
       {{ else }}
 	ssh {{ login_hint_user }}@{{ srv->name }} {{" "}} "weblogin {{ srv->name }}"
       {{ end }}
+      </pre>
       {{ if srv->sshfp[GOTWEBD_SSHFP_ECDSA][0] != '\0' ||
           srv->sshfp[GOTWEBD_SSHFP_ED25519][0] != '\0' ||
           srv->sshfp[GOTWEBD_SSHFP_RSA][0] != '\0' }}