Compare commits

...

4 Commits

Author SHA1 Message Date
Marco d'Itri
434e384f32
Debian changelog for 5.6.3 2025-07-17 05:29:32 +02:00
Marco d'Itri
87296ebc30
Add the .мон (.xn--l1acc, Mongolia) TLD server 2025-07-05 01:18:55 +02:00
Marco d'Itri
5ec6843896
Add the .sr TLD server
Closes GitHub #190
2025-07-05 01:18:52 +02:00
Marco d'Itri
6e74da05d1
mkpasswd: use readpassphrase(3) if available 2025-06-21 01:34:43 +02:00
4 changed files with 28 additions and 2 deletions

View File

@ -26,12 +26,17 @@
/* which versions? */ /* which versions? */
# define HAVE_GETOPT_LONG # define HAVE_GETOPT_LONG
# define HAVE_GETADDRINFO # define HAVE_GETADDRINFO
# define HAVE_READPASSPHRASE
# define ENABLE_NLS # define ENABLE_NLS
# ifndef LOCALEDIR # ifndef LOCALEDIR
# define LOCALEDIR "/usr/local/share/locale" # define LOCALEDIR "/usr/local/share/locale"
# endif # endif
#endif #endif
#if defined OpenBSD
# define HAVE_READPASSPHRASE
#endif
/* needs unistd.h */ /* needs unistd.h */
#if defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 200112L #if defined _POSIX_C_SOURCE && _POSIX_C_SOURCE >= 200112L
# define HAVE_GETADDRINFO # define HAVE_GETADDRINFO
@ -41,6 +46,7 @@
#if defined __APPLE__ && defined __MACH__ #if defined __APPLE__ && defined __MACH__
# define HAVE_GETOPT_LONG # define HAVE_GETOPT_LONG
# define HAVE_GETADDRINFO # define HAVE_GETADDRINFO
# define HAVE_READPASSPHRASE
# define HAVE_BSDICRYPT # define HAVE_BSDICRYPT
#endif #endif

7
debian/changelog vendored
View File

@ -1,3 +1,10 @@
whois (5.6.3) unstable; urgency=medium
* Added the .sr and .мон (.xn--l1acc, Mongolia) TLD servers.
* Use readpassphrase(3) on OpenBSD and FreeBSD.
-- Marco d'Itri <md@linux.it> Thu, 17 Jul 2025 05:15:53 +0200
whois (5.6.2) unstable; urgency=medium whois (5.6.2) unstable; urgency=medium
* Updated the .post and .in (and related IDN TLDs) TLD servers. * Updated the .post and .in (and related IDN TLDs) TLD servers.

View File

@ -47,6 +47,9 @@
#ifdef HAVE_GETTIMEOFDAY #ifdef HAVE_GETTIMEOFDAY
#include <sys/time.h> #include <sys/time.h>
#endif #endif
#ifdef HAVE_READPASSPHRASE
#include <readpassphrase.h>
#endif
/* Application-specific */ /* Application-specific */
#include "version.h" #include "version.h"
@ -387,11 +390,21 @@ int main(int argc, char *argv[])
exit(2); exit(2);
} }
} else { } else {
#ifdef HAVE_READPASSPHRASE
const size_t size = 128;
password = NOFAIL(malloc(size));
if (!readpassphrase(_("Password: "), password, size, 0)) {
perror("readpassphrase");
exit(2);
}
#else
password = getpass(_("Password: ")); password = getpass(_("Password: "));
if (!password) { if (!password) {
perror("getpass"); perror("getpass");
exit(2); exit(2);
} }
#endif
} }
{ {

View File

@ -295,7 +295,7 @@
.sm whois.nic.sm .sm whois.nic.sm
.sn whois.nic.sn .sn whois.nic.sn
.so whois.nic.so .so whois.nic.so
.sr NONE # https://isp.datasur.sr/ .sr whois.sr # https://isp.datasur.sr/
.ss whois.nic.ss .ss whois.nic.ss
.st whois.nic.st .st whois.nic.st
.msk.su whois.flexireg.net .msk.su whois.flexireg.net
@ -397,7 +397,7 @@
.xn--j6w193g whois.hkirc.hk # Hong Kong .xn--j6w193g whois.hkirc.hk # Hong Kong
.xn--kprw13d whois.twnic.net.tw # Taiwan, Simplified Chinese .xn--kprw13d whois.twnic.net.tw # Taiwan, Simplified Chinese
.xn--kpry57d whois.twnic.net.tw # Taiwan, Traditional Chinese .xn--kpry57d whois.twnic.net.tw # Taiwan, Traditional Chinese
.xn--l1acc NONE # Mongolia .xn--l1acc whois.mn # Mongolia
.xn--lgbbat1ad8j whois.nic.dz # Algeria .xn--lgbbat1ad8j whois.nic.dz # Algeria
.xn--mgb9awbf whois.registry.om # Oman .xn--mgb9awbf whois.registry.om # Oman
.xn--mgba3a4f16a whois.nic.ir # Iran .xn--mgba3a4f16a whois.nic.ir # Iran