<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="https://forum.yubico.com/feed.php?f=4&amp;t=598" />

<title>Yubico Forum</title>
<subtitle>...visit our web-store at</subtitle>
<link href="https://forum.yubico.com/index.php" />
<updated>2010-11-24T17:54:40+01:00</updated>

<author><name><![CDATA[Yubico Forum]]></name></author>
<id>https://forum.yubico.com/feed.php?f=4&amp;t=598</id>
<entry>
<author><name><![CDATA[cornelinux]]></name></author>
<updated>2010-11-24T17:54:40+01:00</updated>
<published>2010-11-24T17:54:40+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=598&amp;p=2457#p2457</id>
<link href="https://forum.yubico.com/viewtopic.php?t=598&amp;p=2457#p2457"/>
<title type="html"><![CDATA[Re: one library API for several operating systems]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=598&amp;p=2457#p2457"><![CDATA[
Hi Samir,<br /><br />thanks for your reply. Maybe I get something wrong or maybe I am not the double plus perfect C programmer. (At least I know the last is true <img src="https://forum.yubico.com/images/smilies/icon_e_wink.gif" alt=";-)" title="Wink" /><br /><br />Obviously this is exactly what is used for the ubuntu package yubikey-personalization.<br />And the functions of interest are contained in the ykpers.c file. Which will be compiled and statically linked into the command line tool ykpersonalize.<br /><br />But I do not want to compile these functions statically but I'd rather use a shared library. In fact, i can not compile it into my project, since it is a python programm. And there I'd like to use a .so or .dll. And I'd like to do the same function calls for Linux and Windows.<br /><br />When I take a look at ykpersonalize.c to get an idea which functions need to be called, those functions are not contained in any shared lib. I modified a ykpersonalize.c this way, to make it easy in some simple steps to enroll a YK with HOTP without userinteraction - this would be:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">yk_init()<br />yk = yk_open_first_key()<br />yk_get_status(yk, st)<br />yk_check_firmware_version(yk)<br />ykp_configure_for(cfg, 1, st)<br />ykp_set_tktflag_OATH_HOTP(cfg, true)<br />ykp_write_config(cfg, writer, stderr)<br />yk_write_config(yk,ykp_core_config(cfg), ykp_config_num(cfg),use_access_code ? access_code : NULL)<br /></div><br />done.<br /><br />Again, I'd like to have those necessary functions in a shared lib (so/dll). What do you think about this?<br /><br />Kind regards<br />Cornelius<br /><br /><br />Kind regards<br />Cornelius<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1455">cornelinux</a> — Wed Nov 24, 2010 5:54 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[samir]]></name></author>
<updated>2010-11-24T16:17:53+01:00</updated>
<published>2010-11-24T16:17:53+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=598&amp;p=2456#p2456</id>
<link href="https://forum.yubico.com/viewtopic.php?t=598&amp;p=2456#p2456"/>
<title type="html"><![CDATA[Re: one library API for several operating systems]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=598&amp;p=2456#p2456"><![CDATA[
A Yubico Personalization Library which can be complied on Linux, MAC and Windows platform already exists. The Library can be found at the link below:<br /><br /><!-- m --><a class="postlink" href="http://code.google.com/p/yubikey-personalization/">http://code.google.com/p/yubikey-personalization/</a><!-- m --><br /><br />Yubico is also working on a unified user interface to reprogram the YubiKey which will work on all Linux, MAC and Windows platform.<br />We will update you once it is available.<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1076">samir</a> — Wed Nov 24, 2010 4:17 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[cornelinux]]></name></author>
<updated>2010-11-22T16:09:15+01:00</updated>
<published>2010-11-22T16:09:15+01:00</published>
<id>https://forum.yubico.com/viewtopic.php?t=598&amp;p=2452#p2452</id>
<link href="https://forum.yubico.com/viewtopic.php?t=598&amp;p=2452#p2452"/>
<title type="html"><![CDATA[one library API for several operating systems]]></title>

<content type="html" xml:base="https://forum.yubico.com/viewtopic.php?t=598&amp;p=2452#p2452"><![CDATA[
Dear forum members,<br /><br />I got an authentication backend doing 2 factor authentication and one time passwords.<br />I'd like to do the personalization of the yubikey directly from within my application. I am used to do it with smartcards where you got the pkcs11 interface. In the pkcs11 case you can write one code with one kind of API<br />calls, that might run on windows, linux and maybe on mac os <img src="https://forum.yubico.com/images/smilies/icon_e_wink.gif" alt=";-)" title="Wink" /> if the pkcs11 library is available for those operating systems.<br /><br />I took a glance at the personalization tool code under linux and it looks like, that there is no such library for the yubikey. The<br />personalization tool for linux e.g. defines all the functions by itself:<br /><br /><div class="codetitle"><b>Code:</b></div><div class="codecontent">yk_init() is not defined in a library but in ykpers.c.<br />yk_write_config() ...</div><br /><br />and so on and so on.<br /><br />Wouldn't it be easier to define those &quot;top-level&quot; function in a yubikey library that would be available for linux and windows... (at least easier for me <img src="https://forum.yubico.com/images/smilies/icon_e_wink.gif" alt=";-)" title="Wink" /><br /><br />If I missed something at this point, I am happy to be pointed to the right direction.<br /><br />Kind regards<br />Cornelius<p>Statistics: Posted by <a href="https://forum.yubico.com/memberlist.php?mode=viewprofile&amp;u=1455">cornelinux</a> — Mon Nov 22, 2010 4:09 pm</p><hr />
]]></content>
</entry>
</feed>