https://bugs.openldap.org/show_bug.cgi?id=9985
--- Comment #1 from Bastian bastian-bugopenldap21@t6l.de --- Somehow the attachment got deleted during submit. Here it goes as a comment:
``` test01% pwd /opt/jsc/jscldap/slapd/src/2.6.3/contrib/slapd-modules/passwd/totp
test01% ls Makefile README slapd-totp.c slapo-totp.5
test01% make /opt/jsc/jscldap/slapd/src/2.6.3/libtool --mode=compile gcc -g -O2 -I/opt/jsc/jscldap/slapd/src/2.6.3/include -I/opt/jsc/jscldap/slapd/src/2.6.3/include -I/opt/jsc/jscldap/slapd/src/2.6.3/servers/slapd -c slapd-totp.c libtool: compile: gcc -g -O2 -I/opt/jsc/jscldap/slapd/src/2.6.3/include -I/opt/jsc/jscldap/slapd/src/2.6.3/include -I/opt/jsc/jscldap/slapd/src/2.6.3/servers/slapd -c slapd-totp.c -fPIC -DPIC -o .libs/slapd-totp.o slapd-totp.c: In function ‘do_hmac’: slapd-totp.c:367:9: warning: ‘HMAC_CTX_new’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 367 | HMAC_setup(ctx, key->mv_val, key->mv_len, hash); | ^~~~~~~~~~ In file included from slapd-totp.c:38: /usr/include/openssl/hmac.h:33:33: note: declared here 33 | OSSL_DEPRECATEDIN_3_0 HMAC_CTX *HMAC_CTX_new(void); | ^~~~~~~~~~~~ slapd-totp.c:367:9: warning: ‘HMAC_Init_ex’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 367 | HMAC_setup(ctx, key->mv_val, key->mv_len, hash); | ^~~~~~~~~~ In file included from slapd-totp.c:38: /usr/include/openssl/hmac.h:43:27: note: declared here 43 | OSSL_DEPRECATEDIN_3_0 int HMAC_Init_ex(HMAC_CTX *ctx, const void *key, int len, | ^~~~~~~~~~~~ slapd-totp.c:368:9: warning: ‘HMAC_Update’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 368 | HMAC_crunch(ctx, data->mv_val, data->mv_len); | ^~~~~~~~~~~ In file included from slapd-totp.c:38: /usr/include/openssl/hmac.h:45:27: note: declared here 45 | OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data, | ^~~~~~~~~~~ slapd-totp.c:369:9: warning: ‘HMAC_Final’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 369 | HMAC_finish(ctx, out->mv_val, digestLen); | ^~~~~~~~~~~ In file included from slapd-totp.c:38: /usr/include/openssl/hmac.h:47:27: note: declared here 47 | OSSL_DEPRECATEDIN_3_0 int HMAC_Final(HMAC_CTX *ctx, unsigned char *md, | ^~~~~~~~~~ slapd-totp.c:369:9: warning: ‘HMAC_CTX_free’ is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 369 | HMAC_finish(ctx, out->mv_val, digestLen); | ^~~~~~~~~~~ In file included from slapd-totp.c:38: /usr/include/openssl/hmac.h:35:28: note: declared here 35 | OSSL_DEPRECATEDIN_3_0 void HMAC_CTX_free(HMAC_CTX *ctx); | ^~~~~~~~~~~~~ libtool: compile: gcc -g -O2 -I/opt/jsc/jscldap/slapd/src/2.6.3/include -I/opt/jsc/jscldap/slapd/src/2.6.3/include -I/opt/jsc/jscldap/slapd/src/2.6.3/servers/slapd -c slapd-totp.c -o slapd-totp.o >/dev/null 2>&1 /opt/jsc/jscldap/slapd/src/2.6.3/libtool --mode=link gcc -version-info 0:0:0 \ -rpath /usr/local/libexec/openldap -module -o pw-totp.la slapd-totp.lo /opt/jsc/jscldap/slapd/src/2.6.3/libraries/libldap/libldap.la /opt/jsc/jscldap/slapd/src/2.6.3/libraries/liblber/liblber.la libtool: link: cc -shared -fPIC -DPIC .libs/slapd-totp.o -Wl,-rpath -Wl,/opt/jsc/jscldap/slapd/src/2.6.3/libraries/libldap/.libs -Wl,-rpath -Wl,/opt/jsc/jscldap/slapd/src/2.6.3/libraries/liblber/.libs -Wl,-rpath -Wl,/opt/jsc/jscldap/sl apd/opt/2.6.3/lib -L/opt/jsc/jscldap/slapd/src/2.6.3/libraries/liblber/.libs /opt/jsc/jscldap/slapd/src/2.6.3/libraries/libldap/.libs/libldap.so -lssl -lcrypto /opt/jsc/jscldap/slapd/src/2.6.3/libraries/liblber/.libs/liblber.so -Wl,-son ame -Wl,pw-totp.so.0 -o .libs/pw-totp.so.0.0.0 libtool: link: (cd ".libs" && rm -f "pw-totp.so.0" && ln -s "pw-totp.so.0.0.0" "pw-totp.so.0") libtool: link: (cd ".libs" && rm -f "pw-totp.so" && ln -s "pw-totp.so.0.0.0" "pw-totp.so") libtool: link: ar cru .libs/pw-totp.a slapd-totp.o libtool: link: ranlib .libs/pw-totp.a libtool: link: ( cd ".libs" && rm -f "pw-totp.la" && ln -s "../pw-totp.la" "pw-totp.la" )
test01% echo $? 0
test01% ls Makefile README pw-totp.la slapd-totp.c slapd-totp.lo slapd-totp.o slapo-totp.5 ```