Skip to content

Commit

Permalink
FEAT: added simple mobileprovision codec,
Browse files Browse the repository at this point in the history
which can be used to load Apple's mobile provisioning files as a string for examination (without need to use Apple's tools).
```
>> print load %some.mobileprovision
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
        <key>AppIDName</key>
        <string>My App</string>
        <key>ApplicationIdentifierPrefix</key>
        <array>
...
```
  • Loading branch information
Oldes committed Apr 24, 2020
1 parent 2e41df0 commit 0b3531f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/mezz/codec-der.r
Original file line number Diff line number Diff line change
Expand Up @@ -324,3 +324,16 @@ register-codec [

verbose: 0
]

register-codec [
name: 'mobileprovision
title: "Apple's mobileprovision file"
suffixes: [%.mobileprovision]
decode: function[data [binary!]][
try [
der: codecs/DER/decode data
result: to string! der/sequence/cs0/sequence/sequence/cs0/2
]
result
]
]

0 comments on commit 0b3531f

Please sign in to comment.