Replacement of M_ASN1_I2D * in OpenSSL 3.0 - c++

I'm migrating openSSL from 1.0.2z to openSSL 3.0.
I'm not able to find the replacement of M_ASN1_I2D* functions.
M_ASN1_I2D_len, M_ASN1_I2D_put, M_ASN1_I2D_seq_total, ASN1_I2D_vars, M_ASN1_I2D_finish
The were earlier declared in file asn1_mac.h (which is deprecated in OpenSSL 3.0), can someone please help me identify the document or their replacement in OpenSSL 3.0

Related

Cake Addins install fail error during build

I am using net 4.8 framework. and cake version 0.38.2.
During build in Teamcity, it has to install addins cake.npm, cake.filehelpers. But following error happens
Could not find any assemblies compatible with .NETFramework,Version=v4.6.1.
Error: Failed to install addin 'Cake.Npm'.
When I use cake.npm version as 0.17.0 for cake 0.38.2, it generates two folders - cake.npm and cake.npm0.17.0. Only cake npm0.17.0 is required, because it has netstandard2.0 which can make build successful. But the other folder makes it fail
As discussed in https://github.com/cake-contrib/Cake.Npm/issues/140 Cake.Npm is not the culprit, here.
There is an additional (#load) reference in the project to Cake.Sitecore in version 1.0.3 which in contents/scripts/tasks.restore.cake contains the line
#addin "Cake.Npm"
This - without an explicit version being set - will always default to the newest version (currently 2.0.0, which is incompatible with Cake 0.38.2).
The current version of Cake.Sitecore (1.0.27) has that problem fixed.

fUtilLib & fAllocator for PhysX 2.7

does anybody know where I can find the lib/source that declares the fUtilLib & fAllocator identifiers?
The code I am working on is from 2007-2009, so it's a rather old code. The PhysX SDK in use is 2.7.3 currently. (I have a suspicion that I need a specific version such as 2.7.0)
HMODULE sd=LoadLibrary((LPCTSTR)"PhysXCore.dll");
df=(ffd)GetProcAddress(sd,"NpCreatePhysicsSDK");
NxGetUtilLib=(fUtilLib)GetProcAddress(sd,"NpGetUtilLib");
NxGetPhysicsSDKAllocator=(fAllocator)GetProcAddress(sd,"NpGetPhysicsSDKAllocator");

Error when using Goth get token google cloud

I'm using {:ok, goth} = Goth.Token.for_scope("https://www.googleapis.com/auth/devstorage.full_control")
But i seen a bug. Please help me
** (exit) an exception was raised:
** (UndefinedFunctionError) function :crypto.mpint/1 is undefined or private
(crypto) :crypto.mpint(19687873431742193920055970243130294467124206658682087298983794038798216955530975915146333586732314900700035611611045789143545904247799428447896803420118324471667046274052296120024954651561469080093219328190691149886440049200669636272584661976356321702914680136369124759272732574776698998044554776915282967732669956832401458331945711479325049514685797410840542208523089896590986235120222095570675226125560522026179882816977851505433864383972624362893774956738669017687990725035030542706539434148824251987312659383648295704127681204473207295376320651645980971185202320992998884262991006767805018245431366563316696488933)
Please check that you are using Goth 0.6.0 or later version, so that json_web_token will be updated to its newest version that does not rely on mpint/1.
More detailed explanation:
:crypto.mpint/1 was removed in the latest version of Erlang/OTP 20 since it was deprecated few versions ago.
Goth has a dependency called json_web_token which used to use mpint/1 up until the middle of 2017. Since then version 0.2.10 was released as an emergency fix for the removal of mpint/1 in the crypto package and you can see that Goth had this dependency updated in the summer also - https://github.com/peburrows/goth/commit/b983dc15447ee6b59a0f170f5a47da9e298549ff .

clang/AST/RecursiveASTVisitor.h file not found

I followed the steps on this website:http://eli.thegreenplace.net/2012/06/08/basic-source-to-source-transformation-with-clang/
And I've installed clang 2.7 on my ubuntu,but I get the error : /clang/AST/RecursiveASTVisitor.h file not found.
I use the find command to search the RecursiveASTVisitor.h but I can just find ASTVisitor.h file. So I think maybe I just installed the wrong version. But I don't know where to find the information that from which version clang begin to use RecursiveASTVisitor.
RecursiveASTVisitor.h was added to clang in version 2.8.

MongoDB C++ Driver installation on Mac OS

It's been 2 days I'm trying to install the driver C++ of MongoDB but I keep running into the same mistake ( in Mac OS X environnement )
In file included from /opt/local/include/boost/filesystem/operations.hpp:24,
from /opt/local/include/boost/filesystem/convenience.hpp:22,
from pch.h:83,
from pch.cpp:18:
/opt/local/include/boost/filesystem/config.hpp:16:5: error: #error Compiling Filesystem version 3 file with BOOST_FILESYSTEM_VERSION defined != 3
In file included from util/goodies.h:22,
from pch.h:161,
from pch.cpp:18:
util/concurrency/mutex.h: In function 'boost::xtime mongo::incxtimemillis(long long int)':
Before installing the lib ( by doing "scons" ), I installed pcre and boost via portmac ( sudo port install boost ).
Any ideas ? I'm really stuck right now..
Thx guys.
You need downgrade the boost library to 1.45 or earlier version to build the mongodb, because it depend on the boost::filesystem v2, but the latest boost (after v1.46) is using boost::filesystem v3 by default.
http://www.boost.org/users/history/version_1_46_0.html
Filesystem:
Version 3 of the library is now the default.
I had the same problem, and downgrading to boost 1.45 got it compiled for me (thanks Flier Lu). I use MacPorts to install Boost; here's instructions on how to downgrade:
https://trac.macports.org/wiki/howto/InstallingOlderPort