[openssl-users] Error: does not have a number assigned

Dr. Matthias St. Pierre Matthias.St.Pierre at ncp-e.com
Tue Nov 27 12:38:51 UTC 2018


Short version: Just do 'make update' and the numbers will be added automagically.

Long version:  There  is a script, 'util/mkdef.pl', which gets invoked by 'make update'. It scans the header files
for new APIs an updates the .num files  (libcrypto.num/libeay.num and libssl.num) accordingly. For windows,
it also  updates the module definition files (*.def).
 
So 'make update' will add your new API function. But be warned: As Jakob already mentioned, if you update
OpenSSL it can happen that you get merge conflicts (if you use git) or your numbers will get overwritten
(if you extract tarballs). You will have to renumber you symbols (or remove them and run 'make update' again).

HTH,
Matthias


> -----Ursprüngliche Nachricht-----
> Von: openssl-users <openssl-users-bounces at openssl.org> Im Auftrag von Jakob Bohm via openssl-users
> Gesendet: Dienstag, 27. November 2018 12:09
> An: openssl-users at openssl.org
> Betreff: Re: [openssl-users] Error: does not have a number assigned
> 
> On 27/11/2018 11:50, EYAL INBAR wrote:
> > Hello
> >
> > I try to add API,CMP_build_KUR_req, to crypto lib and get
> >
> > Error: CMP_build_KUR_req does not have a number assigned
> >
> > Any suggestion?
> This means you are compiling for a platform (probably Windows
> or OS/2) where names exported from DLLs are assigned unique
> numbers for fast lookup during application load.
> 
> There is a source file in OpenSSL giving the assigned numbers.
> You will need to add numbers for you additional exports, and
> deal with the risk that a future OpenSSL release uses that
> number for something else.
> 
> 
> Enjoy
> 
> Jakob
> --
> Jakob Bohm, CIO, Partner, WiseMo A/S.  https://www.wisemo.com
> Transformervej 29, 2860 Søborg, Denmark.  Direct +45 31 13 16 10
> This public discussion message is non-binding and may contain errors.
> WiseMo - Remote Service Management for PCs, Phones and Embedded
> 
> --
> openssl-users mailing list
> To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users


More information about the openssl-users mailing list