Search

Items tagged with: define


this looks like a bug in the port. So if you start looking at the configure script for net-snmp you'll find that those AES modes you want are only enabled if the following passes:

if test "x/usr/local/ssl" != x -a -d /usr/local/ssl; then
if test -d /usr/local/ssl/lib; then
LDFLAGS="-L/usr/local/ssl/lib $LDFLAGS"
fi
if test -d /usr/local/ssl/include; then
CPPFLAGS="-I/usr/local/ssl/include $CPPFLAGS"
fi
fi

which then sets tryopenssl=yes

If tryopenssl=yes, then it runs this loop:

if test "x$tryopenssl" = "xyes"; then
for ac_header in openssl/aes.h openssl/evp.h
do :
as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
if eval test \"x\$"$as_ac_Header"\" = x"yes"
then :
cat >>confdefs.h <<_ACEOF
#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
_ACEOF
aes_capable=yes
fi

done
fi

and that appears to be what is required to enable those AES modes

but if you're building against OpenSSL in base (as you would be by default), this test is going to fail...


stackoverflow.com/questions/33…

> I have to pass 256Kb of text as an argument to the "aws sqs"

what, uhhh, what

> MAX_ARG_STRLEN is defined as 32 times the page size in linux/include/uapi/linux/binfmts.h:
> The default page size is 4 KB so you cannot pass arguments longer than 128 KB.
> I modified linux/include/uapi/linux/binfmts.h to #define MAX_ARG_STRLEN (PAGE_SIZE * 64), recompiled my kernel and now your code produces

casually patching the kernel to send a quarter megabyte as a *single* argument oh my god i'm laughing hard


ah, that fixes the space prefix bug i saw, but the #[url=https://tech.lgbt/tags/define]define[/url] strncasecmp causes some windows builds to fail, which i was going to put in a pull request for


The number of times I’ve needed to #define an alias to deal with naming collisions makes me vaguely glad of the objective-c habit of domain-abbreviated prefixes, but wishes there was a better way to accomplish it in plain old C.