<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Форум Guardant &mdash; Вызов GrdFind из libgrdapi.so под Linux возвращает AllDonglesFound]]></title>
		<link>https://forum.guardant.ru/topic/1007/</link>
		<atom:link href="https://forum.guardant.ru/feed/rss/topic/1007/" rel="self" type="application/rss+xml" />
		<description><![CDATA[Недавние сообщения в теме «Вызов GrdFind из libgrdapi.so под Linux возвращает AllDonglesFound».]]></description>
		<lastBuildDate>Tue, 16 Apr 2024 07:47:06 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Вызов GrdFind из libgrdapi.so под Linux возвращает AllDonglesFound]]></title>
			<link>https://forum.guardant.ru/post/5169/#p5169</link>
			<description><![CDATA[<p>Добрый день.<br />Для операционных систем семейства Linux устанавливать правило UDEV необходимо.</p><p>Подробнее об этом можно прочитать на портале документации, <a href="https://dev.guardant.ru/pages/viewpage.action?pageId=1278017">на этой странице</a>.</p>]]></description>
			<author><![CDATA[null@example.com (Тимофей Ершов)]]></author>
			<pubDate>Tue, 16 Apr 2024 07:47:06 +0000</pubDate>
			<guid>https://forum.guardant.ru/post/5169/#p5169</guid>
		</item>
		<item>
			<title><![CDATA[Re: Вызов GrdFind из libgrdapi.so под Linux возвращает AllDonglesFound]]></title>
			<link>https://forum.guardant.ru/post/5164/#p5164</link>
			<description><![CDATA[<p>хочу поднять тему, похоже она меня тоже касается.. один и тот же код работает под виндой, и не работает под линукс:<br /></p><div class="codebox"><pre><code> 
  int nRet = GrdStartup( GrdFMR_Local );

  uint8_t abyGrd[ GrdContainerSize ];
  HANDLE hGrd = GrdCreateHandle( (HANDLE)abyGrd, GrdCHM_MultiThread, NULL );

  nRet = GrdSetAccessCodes( hGrd, ..., ..., 0, 0 );

  nRet = GrdSetFindMode( hGrd, GrdFMR_Local, 0, 0, 0, 0, 0, 0, 0, GrdFMM_ALL, GrdFMI_ALL );

  DWORD dwID = 0;
  TGrdFindInfo GrdFindInfo;
  nRet = GrdFind( hGrd, GrdF_First, &amp;dwID, &amp;GrdFindInfo );</code></pre></div><p>возвращается ошибка 36 (all dongles found)</p><p>PS. <br />ага, победил, дело было в отсутствии файла `/etc/udev/rules.d/95-grdnt.rules` - скопировал с другой системы<br />но вот хоть убейте - не помню, каким образом он туда попадает, что из ПО Guardant надо запускать?</p>]]></description>
			<author><![CDATA[null@example.com (iluha)]]></author>
			<pubDate>Tue, 09 Apr 2024 14:14:32 +0000</pubDate>
			<guid>https://forum.guardant.ru/post/5164/#p5164</guid>
		</item>
		<item>
			<title><![CDATA[Re: Вызов GrdFind из libgrdapi.so под Linux возвращает AllDonglesFound]]></title>
			<link>https://forum.guardant.ru/post/4913/#p4913</link>
			<description><![CDATA[<p>Guardant SDK 7 Update 8</p><p>Используем библиотеку GuardantDotNetCoreApi.dll и GrdAPI64.dll для сборок под Windows. Все прекрасно работает.</p><p>Но разве GuardantDotNetCoreApi.dll и GrdAPI64.dll будут работать для сборок под Linux?</p>]]></description>
			<author><![CDATA[null@example.com (kriushichevalexander)]]></author>
			<pubDate>Tue, 28 Feb 2023 05:44:18 +0000</pubDate>
			<guid>https://forum.guardant.ru/post/4913/#p4913</guid>
		</item>
		<item>
			<title><![CDATA[Re: Вызов GrdFind из libgrdapi.so под Linux возвращает AllDonglesFound]]></title>
			<link>https://forum.guardant.ru/post/4912/#p4912</link>
			<description><![CDATA[<p>Добрый день. Просьба уточнить, какую версию SDK вы используете для защиты?<br />Для защиты .NetCore в составе SDK есть специальная библиотека - GuardantDotNetCoreApi.dll. Ее необходимо использовать вместе с нативной библиотекой.</p>]]></description>
			<author><![CDATA[null@example.com (Тимофей Ершов)]]></author>
			<pubDate>Mon, 27 Feb 2023 14:53:45 +0000</pubDate>
			<guid>https://forum.guardant.ru/post/4912/#p4912</guid>
		</item>
		<item>
			<title><![CDATA[Re: Вызов GrdFind из libgrdapi.so под Linux возвращает AllDonglesFound]]></title>
			<link>https://forum.guardant.ru/post/4911/#p4911</link>
			<description><![CDATA[<p>Кстати, тот же самый код только при использовании библиотеки GuardantDotNetApi.dll на Windows работает нормально и возвращает установленные ключи в ПК</p><p>Скомпилировал Вашу программу chknsk для Linux<br />Она так же не находит ключи в системе</p><div class="codebox"><pre><code>Welcome to Guardant Diagnostic Tool! (v1.0001)

Detecting Guardant dongles ...

Result: 0 dongle(s) found. Press Enter...</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (kriushichevalexander)]]></author>
			<pubDate>Thu, 23 Feb 2023 05:19:31 +0000</pubDate>
			<guid>https://forum.guardant.ru/post/4911/#p4911</guid>
		</item>
		<item>
			<title><![CDATA[Вызов GrdFind из libgrdapi.so под Linux возвращает AllDonglesFound]]></title>
			<link>https://forum.guardant.ru/post/4910/#p4910</link>
			<description><![CDATA[<p>Добрый день!<br />Разрабатываем приложение для Linux на NetCore. <br />Подключили библиотеку libgrdapi.so и через DllImport вызываем методы.</p><div class="codebox"><pre><code>        [DllImport(&quot;libgrdapi.so&quot;, EntryPoint = &quot;GrdStartup&quot;, CallingConvention = CallingConvention.Cdecl)]
        public static extern int GrdStartup(GrdFMR grdFMR);

        [DllImport(&quot;libgrdapi.so&quot;, EntryPoint = &quot;GrdCreateHandle&quot;, CallingConvention = CallingConvention.Cdecl)]
        public static extern IntPtr GrdCreateHandle(IntPtr hAddress, GrdCHM mode, IntPtr other);

        [DllImport(&quot;libgrdapi.so&quot;, EntryPoint = &quot;GrdSetAccessCodes&quot;, CallingConvention = CallingConvention.Cdecl)]
        public static extern int GrdSetAccessCodes(IntPtr hAddress, uint publicCode, uint privateRD, uint privateWR, uint privateMST);

        [DllImport(&quot;libgrdapi.so&quot;, EntryPoint = &quot;GrdFind&quot;, CallingConvention = CallingConvention.Cdecl)]
        public static extern int GrdFind(IntPtr hAddress, int mode, IntPtr id, IntPtr findInfo);

        [DllImport(&quot;libgrdapi.so&quot;, EntryPoint = &quot;GrdSetFindMode&quot;, CallingConvention = CallingConvention.Cdecl)]
        public static extern int GrdSetFindMode(IntPtr hAddress, GrdFMR remoteMode, GrdFM flags, uint prog, uint id, uint sn, uint ver, uint mask, GrdDT type, GrdFMM models, GrdFMI interfaces);

        [DllImport(&quot;libgrdapi.so&quot;, EntryPoint = &quot;GrdLogin&quot;, CallingConvention = CallingConvention.Cdecl)]
        public static extern int GrdLogin(IntPtr hAddress, int moduleLMS, GrdLM loginFlags);

        [DllImport(&quot;libgrdapi.so&quot;, EntryPoint = &quot;GrdLogout&quot;, CallingConvention = CallingConvention.Cdecl)]
        public static extern int GrdLogout(IntPtr hAddress, int mode);

        [DllImport(&quot;libgrdapi.so&quot;, EntryPoint = &quot;GrdRead&quot;, CallingConvention = CallingConvention.Cdecl)]
        public static extern int GrdRead(IntPtr hAddress, uint addr, int length, IntPtr input, IntPtr other);

        [DllImport(&quot;libgrdapi.so&quot;, EntryPoint = &quot;GrdCleanup&quot;, CallingConvention = CallingConvention.Cdecl)]
        public static extern int GrdCleanup();

        [DllImport(&quot;libgrdapi.so&quot;, EntryPoint = &quot;GrdCloseHandle&quot;, CallingConvention = CallingConvention.Cdecl)]
        public static extern int GrdCloseHandle(IntPtr hAddress);

        [DllImport(&quot;libgrdapi.so&quot;, EntryPoint = &quot;GrdSetWorkMode&quot;, CallingConvention = CallingConvention.Cdecl)]
        public static extern int GrdSetWorkMode(IntPtr hAddress, GrdWM flagsWork, int other);</code></pre></div><p>При выполнении поиска установленных ключей в Astra Linux при помощи метода GrdFind всегда возвращается AllDonglesFound, хотя ключи установлены в ПК и определяются как Guardant.</p><div class="codebox"><pre><code>Feb 22 19:06:54 astra kernel: usb 1-2: USB disconnect, device number 9
Feb 22 19:06:55 astra kernel: usb 1-2: new full-speed USB device number 10 using xhci_hcd
Feb 22 19:06:55 astra kernel: usb 1-2: New USB device found, idVendor=0a89, idProduct=0003, bcdDevice= 1.00
Feb 22 19:06:55 astra kernel: usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Feb 22 19:06:55 astra kernel: usb 1-2: Product: Guardant Stealth II 
Feb 22 19:06:55 astra kernel: usb 1-2: Manufacturer: Aktiv Co.
Feb 22 19:06:55 astra mtp-probe[15174]: checking bus 1, device 10: &quot;/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-2&quot;
Feb 22 19:06:55 astra mtp-probe[15174]: bus: 1, device: 10 was not an MTP device
Feb 22 19:06:55 astra mtp-probe[15176]: checking bus 1, device 10: &quot;/sys/devices/pci0000:00/0000:00:01.2/0000:02:00.0/usb1/1-2&quot;</code></pre></div><p>Вызов методов GrdStartup, GrdCreateHandle и GrdSetAccessCodes перед этим возвращают OK.</p><p>Подскажите пожалуйста, в чем может быть проблема?</p>]]></description>
			<author><![CDATA[null@example.com (kriushichevalexander)]]></author>
			<pubDate>Wed, 22 Feb 2023 14:51:45 +0000</pubDate>
			<guid>https://forum.guardant.ru/post/4910/#p4910</guid>
		</item>
	</channel>
</rss>
