mirror of
https://github.com/StikDebug/StikDebug.git
synced 2026-10-15 20:10:30 +00:00
Introduces DeviceLibraryStore and DeviceConnectionContext to manage external device profiles and connections. Updates app logic to support switching between local loopback VPN and direct external device connections, including UI for device management and improved connection handling throughout the app.
22 lines
844 B
Objective-C
22 lines
844 B
Objective-C
//
|
|
// profiles.h
|
|
// StikDebug
|
|
//
|
|
// Created by s s on 2025/11/29.
|
|
//
|
|
|
|
#ifndef PROFILES_H
|
|
#define PROFILES_H
|
|
#include "idevice.h"
|
|
#include <Foundation/Foundation.h>
|
|
NSArray<NSData*>* _Nullable fetchAppProfiles(IdeviceProviderHandle* _Nonnull provider, NSError* _Nullable * _Nullable error);
|
|
bool removeProfile(IdeviceProviderHandle* _Nonnull provider, NSString* _Nonnull uuid, NSError* _Nullable * _Nullable error);
|
|
bool addProfile(IdeviceProviderHandle* _Nonnull provider, NSData* _Nonnull profile, NSError* _Nullable * _Nullable error);
|
|
|
|
@interface CMSDecoderHelper : NSObject
|
|
// Decode CMS/PKCS7 data and return decoded payload and any embedded certs
|
|
+ (NSData*)decodeCMSData:(NSData *)cmsData
|
|
// outCerts:(NSArray<id> * _Nullable * _Nullable)outCerts
|
|
error:(NSError * _Nullable * _Nullable)error;
|
|
@end
|
|
#endif
|