ACSMDownloader

ACSMDownloader Git Source Tree

Root/include/rmsdk/adept.h

Source at commit 1f582f55f35b3a6898ced8d388e043ee81168bd1 created 4 months 21 days ago.
By Grégory Soutadé, First clean working version
1/*
2 File automatically generated by SOAdvancedDissector.py
3 More information at http://indefero.soutade.fr/p/soadvanceddissector
4*/
5
6#ifndef _ADEPT_H
7#define _ADEPT_H
8
9// #include <dpio.h>
10#include <uft.h>
11#include <dp.h>
12#include <dpdrm.h>
13#include <dpsec.h>
14#include <mdom.h>
15#include <dpdoc.h>
16#include <dputils.h>
17#include <dpdev.h>
18#include <dpcrypt.h>
19
20class MockDevice;
21class MetroWisDOM;
22
23namespace adept {
24
25 class ActivationData;
26 class ActivationImpl;
27 class ActivationList;
28 class ActivationRecord;
29 class ActivationServiceInfo;
30 class Constraints;
31 class ConsumableCount;
32 class DRMProcessorImpl;
33 class DRMProviderImpl;
34 class FulfillmentItemData;
35 class FulfillmentItemImpl;
36 class FulfillmentItemList;
37 class GPFile;
38 class GPFileLock;
39 class IdentityWrapper;
40 class InfoSetSHA1Hasher;
41 //class IoCallbackWrapper<adept::DRMProcessorImpl>;
42 class License;
43 class LicenseData;
44 class LicenseImpl;
45 class LicenseList;
46 class LicenseRequestInfo;
47 class LicenseServiceInfo;
48 class LoanToken;
49 class PermissionImpl;
50 class PermissionList;
51 class Permissions;
52 class RightsImpl;
53 class SyntheticRightsImpl;
54 class UnverifiedRightsImpl;
55 //class UrlLoader<adept::DRMProcessorImpl>;
56 class User;
57
58
59 class ActivationData
60 {
61 public:
62 ActivationData();
63 ActivationData(adept::ActivationData const&);
64
65 ~ActivationData();
66
67 void getWeakReferencePtr();
68 void* operator new(unsigned int, uft::Value&);
69 void query(uft::Value const&, void*);
70 void staticInit();
71 void toString() const;
72
73 void* s_descriptor;
74
75 };
76
77 class ActivationImpl: public dpdrm::Activation
78 {
79 public:
80 ActivationImpl(uft::sref<adept::ActivationData> const&);
81
82 virtual ~ActivationImpl();
83 virtual void addRef();
84 virtual void release();
85 virtual void getUserID();
86 virtual void getDeviceID();
87 virtual void getExpiration();
88 virtual void getAuthority();
89 virtual void getUsername();
90 virtual void hasCredentials();
91
92 };
93
94 // class ActivationList: public dp::List<dpdrm::Activation>
95 // {
96 // public:
97 // ActivationList(uft::Vector const&);
98
99 // virtual ~ActivationList();
100 // virtual void addRef();
101 // virtual void release();
102 // virtual int length();
103 // virtual uft::sref<dpdrm::Activation> operator[](unsigned int);
104
105 // };
106
107 class ActivationRecord
108 {
109 public:
110 ActivationRecord();
111 ActivationRecord(adept::ActivationRecord const&);
112
113 ~ActivationRecord();
114
115 void getWeakReferencePtr();
116 void* operator new(unsigned int, uft::Value&);
117 void query(uft::Value const&, void*);
118 void staticInit();
119 void toString() const;
120
121 void* s_descriptor;
122
123 };
124
125 class ActivationServiceInfo
126 {
127 public:
128 ActivationServiceInfo();
129 ActivationServiceInfo(adept::ActivationServiceInfo const&);
130
131 ~ActivationServiceInfo();
132
133 void getWeakReferencePtr();
134 void* operator new(unsigned int, uft::Value&);
135 void query(uft::Value const&, void*);
136 void staticInit();
137 void toString() const;
138
139 void* s_descriptor;
140
141 };
142
143 class Constraints
144 {
145 public:
146 Constraints();
147 Constraints(adept::Constraints const&);
148
149 ~Constraints();
150
151 void getWeakReferencePtr();
152 void* operator new(unsigned int, uft::Value&);
153 void query(uft::Value const&, void*);
154 void staticInit();
155 void toString() const;
156
157 void* s_descriptor;
158
159 };
160
161 class ConsumableCount
162 {
163 public:
164 ConsumableCount();
165
166 ~ConsumableCount();
167
168 void getWeakReferencePtr();
169 void* operator new(unsigned int, uft::Value&);
170 void query(uft::Value const&, void*);
171 void staticInit();
172 void toString() const;
173
174 void* s_descriptor;
175
176 };
177
178 class DRMProcessorImpl: public dpdrm::DRMProcessor, public dpdoc::DocumentClient, public uft::ErrorHandler
179 {
180 public:
181 DRMProcessorImpl(dpdrm::DRMProcessorClient*, dpdev::Device*);
182
183class DRMStep {};
184
185 virtual ~DRMProcessorImpl();
186 virtual void* getOptionalInterface(char const*);
187 virtual void release();
188 virtual void getActivations();
189 virtual void setUser(dp::String const&);
190 virtual void setPartition(dpio::Partition*);
191 virtual void reset();
192 virtual void initWorkflows(unsigned int, dp::Data const&);
193 virtual void initSignInWorkflow(unsigned int, dp::String const&, dp::String const&, dp::String const&);
194 virtual void initSignInWorkflow(unsigned int, dp::String const&, dp::String const&, dp::Data const&);
195 virtual void initLoanReturnWorkflow(dp::String const&);
196 virtual void initUpdateLoansWorkflow(dp::String const&, dp::String const&);
197 virtual void initJoinAccountsWorkflow(dp::String const&, dp::String const&, dp::String const&);
198 virtual int startWorkflows(unsigned int);
199 virtual void providePasshash(dp::Data const&);
200 virtual void provideInput(dp::Data const&);
201 virtual void provideConfirmation(dp::String const&, int);
202 virtual void transferLoanTokensFrom(dpdev::Device*);
203 virtual void transferCredentialsFrom(dpdev::Device*, dp::String const&, bool);
204 virtual dp::list<dpdrm::FulfillmentItem> getFulfillmentItems();
205 virtual void getFulfillmentID();
206 virtual void isReturnable();
207 virtual void addPasshash(dp::String const&, dp::Data const&);
208 virtual void removePasshash(dp::String const&, dp::Data const&);
209 virtual void calculatePasshash(dp::String const&, dp::String const&);
210 virtual void getInterfaceVersion();
211 virtual void getResourceStream(dp::String const&, unsigned int);
212 virtual void canContinueProcessing(int);
213 virtual void reportLoadingState(int);
214 virtual void reportDocumentError(dp::String const&);
215 virtual void reportErrorListChange();
216 virtual void requestLicense(dp::String const&, dp::String const&, dp::Data const&);
217 virtual void requestDocumentPassword();
218 virtual void documentSerialized();
219 virtual void reportStateError(uft::String const&);
220 virtual void reportProcessError(uft::String const&);
221 virtual void setURLString(uft::String const&);
222 virtual void getURLString();
223 virtual void changeURL(uft::String const&);
224
225 void activate();
226 void activateErr(uft::String const&);
227 void activateResp(uft::String const&, uft::Buffer const&);
228 void activationIsLess(uft::sref<adept::ActivationData> const&, uft::sref<adept::ActivationData> const&);
229 void addDeviceSections(mdom::Node const&);
230 void addSignIn();
231 void addSignInErr(uft::String const&);
232 void addSignInResp(uft::String const&, uft::Buffer const&);
233 void addSlashIfNeeded(uft::String const&);
234 void authSignIn();
235 void authSignInErr(uft::String const&);
236 void authSignInResp(uft::String const&, uft::Buffer const&);
237 void checkCurrentUserIsAuthorized();
238 void createCertificate(dp::Data const&);
239 void documentWithLicenseError(dp::String const&);
240 void documentWithLicenseProgress(double);
241 void documentWrittenWithLicense(dp::Unknown*, bool);
242 void encryptWithDeviceKey(dp::Data const&);
243 void endDownload();
244 void finishFulfillmentResultProcessing();
245 void finishWorkflow(int, bool, dp::Data const&);
246 void fulfill();
247 void fulfillErr(uft::String const&);
248 void fulfillPasshash();
249 void fulfillResp(uft::String const&, uft::Buffer const&);
250 void getCredentialList();
251 void getCredentialListErr(uft::String const&);
252 void getCredentialListResp(uft::String const&, uft::Buffer const&);
253 void getDefaultActivationForUser(uft::Vector const&, uft::String const&);
254 void getIdentityByUser(uft::sref<adept::User> const&);
255 void getNotifications(mdom::Node const&);
256 void getReportedErrorString();
257 void guessMimeType();
258 void guessMimeTypeErr(uft::String const&);
259 void guessMimeTypeResp(uft::String const&, uft::Buffer const&);
260 void initAct();
261 void initActErr(uft::String const&);
262 void initActResp(uft::String const&, uft::Buffer const&);
263 void initAuth();
264 void initAuthErr(uft::String const&);
265 void initAuthResp(uft::String const&, uft::Buffer const&);
266 void initLicense();
267 void initLicenseErr(uft::String const&);
268 void initLicenseResp(uft::String const&, uft::Buffer const&);
269 void initSignInWorkflowCommon(unsigned int);
270 void joinAccounts();
271 void joinAccountsErr(uft::String const&);
272 void joinAccountsResp(uft::String const&, uft::Buffer const&);
273 void licenseServiceInfo(uft::String const&);
274 void licenseServiceInfoErr(uft::String const&);
275 void licenseServiceInfoResp(uft::String const&, uft::Buffer const&);
276 void makeSignInKey();
277 void makeUserFromCredentials(mdom::Node const&, bool);
278 void nextDownload();
279 void nextFulfillmentItemNode();
280 void nextNotification();
281 void nextStep(adept::DRMProcessorImpl::DRMStep);
282 void nextWorkflow();
283 void notificationErr(uft::String const&);
284 void notificationResp(uft::String const&, uft::Buffer const&);
285 void operatorAuth();
286 void operatorAuthErr(uft::String const&);
287 void operatorAuthResp(uft::String const&, uft::Buffer const&);
288 void processFulfillmentItemNode(mdom::Node const&);
289 void processFulfillmentResult(mdom::Node const&, uft::String const&);
290 void reportWorkflowError(unsigned int, dp::String const&);
291 void resetWorkflowData();
292 void returnLoan();
293 void returnLoanErr(uft::String const&);
294 void returnLoanResp(uft::String const&, uft::Buffer const&);
295 void startActivationWorkflow();
296 void startAddSignInWorkflow();
297 void startAuthSignInWorkflow();
298 void startDownloadWorkflow();
299 void startFulfillmentWorkflow();
300 void startGetCredentialListWorkflow();
301 void startJoinAccountsWorkflow();
302 void startLoanReturnWorkflow();
303 void startNotificationWorkflow();
304 void startUpdateLoansWorkflow();
305 void tempFileError(dp::String const&);
306 void tempFileProgress(double);
307 void tempFileWritten(dp::Unknown*, bool);
308 void uniqueFileCreated(dp::Unknown*, bool);
309 void uniqueFileError(dp::String const&);
310 void updateActivationServiceInfo(dpdev::Device*, uft::sref<adept::ActivationServiceInfo> const&);
311 void updateLoans();
312 void updateLoansErr(uft::String const&);
313 void updateLoansResp(uft::String const&, uft::Buffer const&);
314
315 void* ACTIVATION_SERVICE_URL;
316 void* ADEPT_MIME_TYPE;
317 void* REQ_ACTIVATE;
318 void* REQ_ACTIVATION_SERVICE_INFO;
319 void* REQ_ADD_SIGN_IN_DIRECT;
320 void* REQ_AUTH;
321 void* REQ_AUTHENTICATION_SERVICE_INFO;
322 void* REQ_FULFILL;
323 void* REQ_GET_CREDENTIAL_LIST;
324 void* REQ_GET_LICENSE;
325 void* REQ_INIT_LICENSE_SERVICE;
326 void* REQ_JOIN_ACCOUNTS;
327 void* REQ_LICENSE_SERVICE_INFO;
328 void* REQ_LOAN_RETURN;
329 void* REQ_SIGN_IN_DIRECT;
330
331 };
332
333 class DRMProviderImpl: public dpdrm::DRMProvider
334 {
335 public:
336 DRMProviderImpl();
337
338 virtual ~DRMProviderImpl();
339 //virtual DRMProcessorImpl* createDRMProcessor(dpdrm::DRMProcessorClient*, MockDevice*);
340 virtual DRMProcessorImpl* createDRMProcessor(dpdrm::DRMProcessorClient*, dpdev::Device*);
341 virtual void parseLicense(dp::Data const&);
342
343 };
344
345 class FulfillmentItemData
346 {
347 public:
348 FulfillmentItemData();
349 FulfillmentItemData(adept::FulfillmentItemData const&);
350
351 ~FulfillmentItemData();
352
353 void getWeakReferencePtr();
354 void* operator new(unsigned int, uft::Value&);
355 void query(uft::Value const&, void*);
356 void staticInit();
357uft::String toString() const;
358
359 void* s_descriptor;
360
361 };
362
363 class FulfillmentItemImpl: public dpdrm::FulfillmentItem
364 {
365 public:
366 FulfillmentItemImpl(uft::sref<adept::FulfillmentItemData> const&);
367
368 virtual ~FulfillmentItemImpl();
369 virtual void addRef();
370 virtual void release();
371 virtual dp::String getRights();
372 virtual dp::String getMetadata(dp::String const&);
373 virtual dp::String getDownloadMethod();
374 virtual dp::String getDownloadURL();
375 virtual dp::Data getPostData();
376
377 };
378
379 class FulfillmentItemList: public dp::List<dpdrm::FulfillmentItem>
380 {
381 public:
382 FulfillmentItemList(uft::Vector const&);
383
384 virtual ~FulfillmentItemList();
385 virtual void addRef();
386 virtual void release();
387 virtual int length();
388 virtual dp::ref<dpdrm::FulfillmentItem> operator[](unsigned int);
389
390 };
391
392 class GPFile
393 {
394 public:
395 GPFile(uft::Buffer const&);
396
397 ~GPFile();
398
399 void assertLocked() const;
400 void getCheckCode(bool);
401 void getExtraFileInfo() const;
402 void getPtr();
403 void getRecordOffset(uft::Buffer const&, bool);
404 void getWeakReferencePtr();
405 void lock();
406 void* operator new(unsigned int, uft::Value&);
407 void query(uft::Value const&, void*);
408 void resize(unsigned int, bool);
409 void staticInit();
410 void supportCheckCode();
411 void toString() const;
412 void unlock();
413
414 void* s_descriptor;
415
416 };
417
418 class GPFileLock
419 {
420 public:
421 GPFileLock(adept::GPFile*);
422
423 ~GPFileLock();
424
425 };
426
427 class IdentityWrapper
428 {
429 public:
430 IdentityWrapper();
431 IdentityWrapper(adept::IdentityWrapper const&);
432
433 ~IdentityWrapper();
434
435 void getWeakReferencePtr();
436 void* operator new(unsigned int, uft::Value&);
437 void query(uft::Value const&, void*);
438 void staticInit();
439 void toString() const;
440
441 void* s_descriptor;
442
443 };
444
445 class InfoSetSHA1Hasher: public mdom::InfoSetHasher
446 {
447 public:
448 InfoSetSHA1Hasher();
449
450 ~InfoSetSHA1Hasher();
451
452 virtual void update(unsigned char const*, unsigned int);
453
454 void getHash();
455
456 };
457
458 template<typename T>
459 class IoCallbackWrapper: public dp::Callback
460 {
461 public:
462 virtual ~IoCallbackWrapper();
463 virtual void reportProgress(double);
464 virtual void reportError(dp::String const&);
465 virtual void invoke(dp::Unknown*);
466
467IoCallbackWrapper(T*, void (T::*)(dp::Unknown*, bool), void (T::*)(double), void (T::*)(dp::String const&));
468
469 };
470
471 class License
472 {
473 public:
474 License(adept::License const&);
475 License(uft::String const&, uft::String const&, uft::String const&, uft::String const&, uft::String const&, uft::String const&, uft::String const&, uft::String const&, uft::Buffer const&, uft::sref<adept::Permissions> const&, uft::String const&);
476 License(uft::sref<adept::Permissions> const&, uft::String const&);
477
478 ~License();
479
480 void getWeakReferencePtr();
481 void* operator new(unsigned int, uft::Value&);
482 void query(uft::Value const&, void*);
483 void staticInit();
484 void toString() const;
485
486 void* s_descriptor;
487
488 };
489
490 class LicenseData
491 {
492 public:
493 LicenseData();
494 LicenseData(adept::LicenseData const&);
495
496 ~LicenseData();
497
498 void getWeakReferencePtr();
499 void* operator new(unsigned int, uft::Value&);
500 void query(uft::Value const&, void*);
501 void staticInit();
502 void toString() const;
503
504 void* s_descriptor;
505
506 };
507
508 class LicenseImpl: public dpdrm::License
509 {
510 public:
511 LicenseImpl(uft::sref<adept::License> const&);
512
513 virtual ~LicenseImpl();
514 virtual void addRef();
515 virtual void release();
516 virtual void getUserID();
517 virtual void getResourceID();
518 virtual void getVoucherID();
519 virtual void getLicenseURL();
520 virtual void getOperatorURL();
521 virtual void getFulfillmentID();
522 virtual void getDistributorID();
523 virtual void getLicensee();
524 virtual void getPermissions(dp::String const&);
525 virtual void getCurrentCount(dp::String const&);
526 virtual void consume(dp::String const&, int);
527 virtual void getFlavor();
528
529 void adjustCounts(uft::sref<adept::License> const&, int, int);
530 void initializeLicenseCounts(uft::sref<adept::License> const&);
531
532 };
533
534 // class LicenseList: public dp::List<dpdrm::License>
535 // {
536 // public:
537 // LicenseList(uft::Vector const&);
538
539 // virtual ~LicenseList();
540 // virtual void addRef();
541 // virtual void release();
542 // virtual int length();
543 // virtual uft::sref<dpdrm::License> operator[](unsigned int);
544
545 // };
546
547 class LicenseRequestInfo
548 {
549 public:
550 LicenseRequestInfo(adept::LicenseRequestInfo const&);
551 LicenseRequestInfo(uft::String const&, uft::String const&, uft::Buffer const&);
552
553 ~LicenseRequestInfo();
554
555 void getWeakReferencePtr();
556 void* operator new(unsigned int, uft::Value&);
557 void query(uft::Value const&, void*);
558 void staticInit();
559 void toString() const;
560
561 void* s_descriptor;
562
563 };
564
565 class LicenseServiceInfo
566 {
567 public:
568 LicenseServiceInfo();
569 LicenseServiceInfo(adept::LicenseServiceInfo const&);
570
571 ~LicenseServiceInfo();
572
573 void getWeakReferencePtr();
574 void* operator new(unsigned int, uft::Value&);
575 void query(uft::Value const&, void*);
576 void staticInit();
577 void toString() const;
578
579 void* s_descriptor;
580
581 };
582
583 class LoanToken
584 {
585 public:
586 LoanToken();
587 LoanToken(adept::LoanToken const&);
588
589 ~LoanToken();
590
591 void getWeakReferencePtr();
592 void* operator new(unsigned int, uft::Value&);
593 void query(uft::Value const&, void*);
594 void staticInit();
595 void toString() const;
596
597 void* s_descriptor;
598
599 };
600
601 class PermissionImpl: public dpdrm::Permission
602 {
603 public:
604 PermissionImpl(uft::String const&, uft::sref<adept::Constraints> const&);
605
606 virtual ~PermissionImpl();
607 virtual void addRef();
608 virtual void release();
609 virtual void getPermissionType();
610 virtual void getExpiration();
611 virtual void getLoanID();
612 virtual void getDeviceID();
613 virtual void getDeviceType();
614 virtual void getMaxResoultion();
615 virtual void getParts();
616 virtual void isConsumable();
617 virtual void getInitialCount();
618 virtual void getMaxCount();
619 virtual void getIncrementInterval();
620
621 };
622
623 // class PermissionList: public dp::List<dpdrm::Permission>
624 // {
625 // public:
626 // PermissionList(uft::String const&, uft::Vector const&);
627
628 // virtual ~PermissionList();
629 // virtual void addRef();
630 // virtual void release();
631 // virtual int length();
632 // virtual uft::sref<dpdrm::Permission> operator[](unsigned int);
633
634 // };
635
636 class Permissions
637 {
638 public:
639 Permissions();
640 Permissions(adept::Permissions const&);
641
642 ~Permissions();
643
644 void getWeakReferencePtr();
645 void* operator new(unsigned int, uft::Value&);
646 void query(uft::Value const&, void*);
647 void staticInit();
648 void toString() const;
649
650 void* s_descriptor;
651
652 };
653
654 class RightsImpl: public dpdrm::Rights
655 {
656 public:
657 RightsImpl(dp::Data const&, uft::Vector const&);
658 RightsImpl(mdom::Node const&, uft::Vector const&);
659
660 virtual ~RightsImpl();
661 virtual void addRef();
662 virtual void release();
663 virtual void getLicenses();
664 virtual void getValidLicenses(dpdev::Device*);
665 virtual void serialize();
666
667 void getLicensesInternal(dpdev::Device*, bool);
668
669 };
670
671 class SyntheticRightsImpl: public dpdrm::Rights
672 {
673 public:
674 SyntheticRightsImpl(uft::sref<adept::License> const&);
675
676 virtual ~SyntheticRightsImpl();
677 virtual void addRef();
678 virtual void release();
679 virtual void getLicenses();
680 virtual void getValidLicenses(dpdev::Device*);
681 virtual void serialize();
682
683 };
684
685 class UnverifiedRightsImpl: public adept::RightsImpl
686 {
687 public:
688 UnverifiedRightsImpl(dp::Data const&, uft::Vector const&);
689 UnverifiedRightsImpl(mdom::Node const&, uft::Vector const&);
690
691 virtual ~UnverifiedRightsImpl();
692 virtual void addRef();
693 virtual void release();
694 virtual void getLicenses();
695 virtual void getValidLicenses(dpdev::Device*);
696 virtual void serialize();
697
698 };
699
700 template<typename T>
701 class UrlLoader: public dpio::StreamClient, public dputils::GuardedObject
702 {
703 public:
704 virtual ~UrlLoader();
705 virtual void propertyReady(dp::String const&, dp::String const&);
706 virtual void totalLengthReady(unsigned int);
707 virtual void propertiesReady();
708 virtual void bytesReady(unsigned int, dp::Data const&, bool);
709 virtual void reportError(dp::String const&);
710 virtual void deleteThis();
711
712UrlLoader(T*, void (T::*)(uft::String const&, uft::Buffer const&), void (T::*)(uft::String const&));
713
714 void internalReportError(dp::String const&);
715 void startReadingStream(dp::String const&, dp::String const&, unsigned int, dpio::Stream*, unsigned int);
716 void startReadingStream(dpio::Stream*, unsigned int);
717
718 };
719
720 class User
721 {
722 public:
723 User();
724 User(adept::User const&);
725
726 ~User();
727
728 void getWeakReferencePtr();
729 void* operator new(unsigned int, uft::Value&);
730 void query(uft::Value const&, void*);
731 void staticInit();
732 void toString() const;
733
734 void* s_descriptor;
735
736 };
737
738
739 void addExpiration(mdom::Node&);
740 void addNode(mdom::Node&, uft::QName const&, uft::Buffer const&);
741 void addNode(mdom::Node&, uft::QName const&, uft::String const&);
742 void addNode(mdom::Node&, uft::String const&, uft::Buffer const&);
743 void addNode(mdom::Node&, uft::String const&, uft::String const&);
744 void addNonce(mdom::Node&);
745 void addSignature(mdom::Node&, dp::ref<dpcrypt::Identity>);
746 void checkPartPermission(uft::String const&, uft::Value const&, int);
747 void checkSignatureWithCert(uft::Buffer const&, uft::String const&, uft::Buffer const&, uft::Buffer const&, dpcrypt::Role);
748 void checkSignatureWithCertList(uft::Vector const&, uft::String const&, uft::Buffer const&, uft::Buffer const&, dpcrypt::Role);
749 void countPendingLicenseRequests(uft::Vector const&);
750 void createActivationDOM(dpdev::Device*);
751 void createDom(uft::String const&);
752 void createLicenseDOM(uft::ErrorHandler*);
753 void deriveKeyForPart(uft::Buffer const&, int);
754 void derivePDFPartsKey(uft::Buffer const&, int*, unsigned int);
755 void deviceVerify(unsigned char const*, unsigned char const*, unsigned char const*);
756 void extractActivationData(mdom::Node const&);
757 void extractActivationRecord(dpdev::Device*, bool, uft::ErrorHandler*);
758 void extractActivationServiceInfo(mdom::Node const&);
759 void extractConstraints(mdom::Node const&);
760 void extractLicenseData(mdom::Node const&);
761 void extractLicenseServiceInfo(mdom::Node const&);
762 void extractLoanToken(mdom::Node const&);
763 void extractUser(mdom::Node const&);
764 void fillActivationServiceNode(mdom::Node&, uft::sref<adept::ActivationServiceInfo> const&);
765 void fillUserNode(mdom::Node&, uft::sref<adept::User> const&);
766 void findACS4ResourceIdFromVoucherId(mdom::Node const&, uft::String const&);
767 void findAcsmNode(mdom::DOM*, unsigned int);
768 void findAnonymousUser(uft::Dict const&);
769 void findLicenseRequest(uft::Vector const&, uft::String const&, uft::String const&, bool);
770 void findNode(mdom::Node const&, unsigned int, unsigned int, uft::String, unsigned int, uft::Buffer);
771 void findNode(mdom::Node const&, unsigned int, unsigned int, unsigned int*, uft::String*, unsigned int, unsigned int*, uft::Buffer*);
772 void findUserByName(uft::Dict const&, uft::String const&);
773 void getActivationService(dpdev::Device*, uft::String const&);
774 void getBase64EncodedContent(mdom::Node);
775 uft::String getChildValue(mdom::Node const& node, unsigned int nodeType);
776 void getLicense(mdom::Node const&, uft::String const&, uft::Vector const&, dpdev::Device*, uft::ErrorHandler*);
777 void getLicenses(mdom::Node const&, uft::String const&, uft::Vector const&, dpdev::Device*, bool, uft::ErrorHandler*);
778 void getValidUsers(dpdev::Device*, uft::ErrorHandler*);
779 void hashNode(mdom::Node);
780 void isDeviceAvailable(dpdev::Device*);
781 void managePasshash(dpdev::Device*, dp::String const&, dp::Data const&, bool);
782 void mergeIn(mdom::Node const&, char const*, uft::ErrorHandler*);
783 void mergeInLoanTokenNode(mdom::DOM*, uft::sref<adept::LoanToken> const&, mdom::Node const&);
784 void nodeToString(mdom::Node const&);
785 MetroWisDOM* parseXML(char const*);
786 MetroWisDOM* parseXML(dp::Data const&);
787 void removeChildren(mdom::Node const&, unsigned int, unsigned int, uft::String, unsigned int, uft::Buffer);
788 void removeChildren(mdom::Node const&, unsigned int, unsigned int, unsigned int*, uft::String*, unsigned int, unsigned int*, uft::Buffer*);
789 void renderFPH(uft::Buffer const&);
790 void requestLicenses(uft::Vector const&, dpdoc::DocumentClient*);
791 void scrambleActivation(mdom::Node const&, bool, dpdev::Device*);
792 void scramblePrivateLicenseKey(uft::Buffer const&, bool, dpdev::Device*, bool*);
793
794 void* ACS3CompatCertificate;
795 void* ACS3CompatCertificateSize;
796 void* ACS3CompatPrivateKey;
797 void* ACS3CompatPrivateKeySize;
798
799}
800
801
802
803#endif // _ADEPT_H

Archive Download this file

Branches